-
AuthorPosts
-
June 26, 2020 at 10:21 am #1225759
How can I remove the date so it goes away in google search results?
Thanks.
June 26, 2020 at 4:03 pm #1225902Hey peterolle,
Here is your previous topic, did you not get it working?
Best regards,
Victoria-
This reply was modified 5 years, 4 months ago by
Victoria.
June 26, 2020 at 4:41 pm #1225932No and as there are some updates I opened this one to see if there is a new way to achieve this.
Thanks.
June 30, 2020 at 12:25 pm #1226711Hi,
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,
IsmaelJune 30, 2020 at 1:14 pm #1226730I 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.phpIs there a way to achieve this without having to modify core files?
Maybe a function?Thanks.
July 4, 2020 at 2:33 pm #1227921Hi,
Unfortunately, there is not a function to remove thedatePublishedfrom 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 modifiedhelper-markup.phpfile, and then add this to your child theme functions.phprequire_once( 'includes/helper-markup.php' );
I have tested this on a new install with a child theme and it works correctly.Best regards,
Mike -
This reply was modified 5 years, 4 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
