-
AuthorPosts
-
March 16, 2014 at 9:19 pm #238388
Hi,
I have the Enfold sidebar widget to display latest post entries in your sidebar in my footer.
But that widget put postdates in the source and now in the google search results there is alway’s a date in the meta by my pages and posts. I think that google take this date out my source from that widget.How and where can I change this? So that Google don’t show a date in the meta?
March 17, 2014 at 12:57 am #238428Hi,
I also want to completely remove the date in the SERP’s from Google for posts (not only on the post page). So what must I change in the coding from Enfold to do that? I use a Child theme.
Thanks for the effort.
March 18, 2014 at 9:43 am #239231Hi!
Copy includes/loop-index.php to your child theme folder (also put it into an includes folder – enfold-child/includes/loop-index.php) and delete this code:
$markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false)); 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>";
If you want to remove the date from the widget insert following code into your child theme functions.php:
function change_avia_date_format($date, $function) { return false; } add_filter('avia_widget_time', 'change_avia_date_format', 10, 2);
Regards,
PeterMarch 20, 2014 at 12:31 am #240415Hi Peter,
Thanks for your answer. It works perfect!
But in the widget is now only the time showing. Can I also remove this time (from site and source)?March 20, 2014 at 3:33 pm #240740Hey!
Please go to wp-content\themes\enfold\framework\php folder and open class-framework-widgets.php file and remove following lines or comment out using //
echo "<span class='news-time'>".get_the_time($time_format)."</span>";
Regards,
YigitMarch 22, 2014 at 2:25 pm #241603Hi Yigit,
If I remove that the time is still standing.
March 23, 2014 at 5:24 am #241738Hey!
There are two instances of the code Yigit posted. Please find the other one on line 898.
Best regards,
IsmaelMarch 23, 2014 at 2:57 pm #241801Hi Ismael,
I had them both removed, unfortunately without success.
But only the first one is for the News widget I think.March 24, 2014 at 3:55 am #241915 -
AuthorPosts
- You must be logged in to reply to this topic.