Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #250516

    Hi, how do i remove a published date of a page (which appears in google serps).
    Is there a scripts to remove display of dates?
    Thank you

    #250669

    Hey rikv!

    Thank you for using the theme!

    I’m not sure how to remove the date from google serps but if you don’t mind, we would like to know the website url. Some article say that you have to remove the the_date() function in order to hide the dates from google serps. If that is the case, you can edit includes > loop-index.php, find this code on line 71:

    echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>";
                    echo "<span class='text-sep text-sep-date'>/</span>";

    Remove it. I hope that helps.

    Regards,
    Ismael

    #250712

    Ok, i removed it Ismael.
    Thank you
    Maybe you have some extra code to put in the Enfold QuickCSS?
    Something similar to:
    .entry-meta .info-date,.entry-meta .info-author{display:none !important;}
    Don’t know how if this a correct code?
    grtz

    #250857

    Hi,

    Please post a link to your website so we can provide the proper code.

    Regards,
    Josue

    #250913
    This reply has been marked as private.
    #250944

    Hey!

    Unfortunately you can’t remove the code with css. CSS Code just hides the date for the user but Google and other search engines can still read it from the html code. If you want to remove the date completely you must modify the php template (like Ismael suggested here: https://kriesi.at/support/topic/remove-date/#post-250669 ). If you don’t want to modify the template every time you update the theme I recommend to place the modified loop-index.php into a child theme (complete path is wp-content/themes/YOURCHILDTHEME/includes/loop-index.php).

    Cheers!
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.