Tagged: enfold, remove date
-
AuthorPosts
-
November 21, 2015 at 12:00 am #540004
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?November 23, 2015 at 7:21 am #540522Hi 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,
RikardNovember 23, 2015 at 9:06 pm #541162It 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.
November 23, 2015 at 9:59 pm #541184This 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/November 24, 2015 at 10:04 am #541409December 2, 2015 at 7:39 am #545770Great 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.
-
AuthorPosts
- The topic ‘Completely remove date from enfold?’ is closed to new replies.
