Tagged: enfold, remove date
Hi support,
I want to completely remove dates from my enfold website.
I have tried the following css code
.post-meta-infos, .news-time{
display: none;
}
It no longer displays the date, but Google is still detecting the date and posting it in Google search results.
How do I completely remove it so that Google bots can not see the date as well?
Hi anthmyers,
I’m not sure if that is possible to be honest, one reason is that google is using the date a page or post is published for relevant search results. For instance if you are google any term, it’s interesting for you to know when the page was published in order to determine if you want to find the information you are looking for there or move on to the next result.
Regards,
Rikard
It is possible in almost every other theme I have used by simply removing <?php the_date(‘d.m.y’, ”,”); ?>
I just cannot find that in the php for Enfold.
Disabling the date in the css stops it from showing on the page, but it’s still visible to Google. I do not want it shown by Google.
This seems to be working if anyone else needs the real fix to this solution.
http://www.seomediaworld.com/remove-post-date-stamp-on-serp-seo/
Great link, was useful for me. Thank you for sharing.
This is what I did with the link above:
Appearance>Editor>Functions PHP (child theme):
function jl_remove_post_dates() {
add_filter(‘the_date’, ‘__return_false’);
add_filter(‘the_time’, ‘__return_false’);
add_filter(‘the_modified_date’, ‘__return_false’);
add_filter(‘get_the_date’, ‘__return_false’);
add_filter(‘get_the_time’, ‘__return_false’);
add_filter(‘get_the_modified_date’, ‘__return_false’);
} add_action(‘loop_start’, ‘jl_remove_post_dates’);
This worked like a charm for me.