-
AuthorPosts
-
April 12, 2014 at 1:12 pm #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 youApril 13, 2014 at 7:50 am #250669Hey 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,
IsmaelApril 13, 2014 at 9:48 am #250712Ok, 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?
grtzApril 14, 2014 at 3:09 am #250857Hi,
Please post a link to your website so we can provide the proper code.
Regards,
JosueApril 14, 2014 at 6:59 am #250913This reply has been marked as private.April 14, 2014 at 9:03 am #250944Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
