Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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?

    #238428

    Hi,

    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.

    #239231

    Hi!

    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,
    Peter

    #240415

    Hi 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)?

    #240740

    Hey!

    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,
    Yigit

    #241603

    Hi Yigit,

    If I remove that the time is still standing.

    #241738

    Hey!

    There are two instances of the code Yigit posted. Please find the other one on line 898.

    Best regards,
    Ismael

    #241801

    Hi Ismael,

    I had them both removed, unfortunately without success.
    But only the first one is for the News widget I think.

    #241915

    Hey!

    Do you mind posting the link of the website here? We would like to check. Removing the codes above should prevent it from displaying. Remove browser cache then reload the page a few times. If you’re using a cache plugin, try to empty cache.

    Cheers!
    Ismael

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