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

    #540522

    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

    #541162

    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.

    #541184

    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/

    #541409

    Hi,

    Did that solve your problem? Thanks for sharing :-)

    Regards,
    Rikard

    #545770

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Completely remove date from enfold?’ is closed to new replies.