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

    How can I remove the date so it goes away in google search results?

    Thanks.

    #1225902

    Hey peterolle,

    Here is your previous topic, did you not get it working?

    Best regards,
    Victoria

    • This reply was modified 2 weeks, 3 days ago by  Victoria.
    #1225932

    No and as there are some updates I opened this one to see if there is a new way to achieve this.

    Thanks.

    #1226711

    Hi,

    The solution would be the same. The date info may come from a lot of sources, in the templates, a hook, filter or third party plugins and the solutions proposed by @mike in the previous thread should remove all dates generated by the theme.

    Why do you have to remove the date?

    Best regards,
    Ismael

    #1226730

    I have some content that is date less. For example if you talk about blue parrots, there is no need to have a 2012 date showing as first in the result and all the other results with no date.

    That says your content is old, even if you have actually and up to date information for blue parrots.

    So I need to get rid of all dates to avoid this problem.

    Mike recommends:

    To remove the structured-data datePublished from the post please try editing:
    \enfold\includes\helper-markup.php

    Is there a way to achieve this without having to modify core files?
    Maybe a function?

    Thanks.

    #1227921

    Hi,
    Unfortunately, there is not a function to remove the datePublished from the theme’s structured data, but you can use the solution from your previous thread in your child theme by creating an /includes/ directory in your child theme and adding your modified helper-markup.php file, and then add this to your child theme functions.php require_once( 'includes/helper-markup.php' );
    I have tested this on a new install with a child theme and it works correctly.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.