1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Remove Comment Dates?

Discussion in 'Blogging' started by HereIComes, Mar 9, 2016.

  1. HereIComes

    HereIComes Registered Member

    Joined:
    Feb 15, 2015
    Messages:
    74
    Likes Received:
    29
    How can I remove comment dates so that Google bots won't see the comment dates? I had an unfruitful google search section on the same just now. Any help is appreciated.
     
  2. Crazy Monkey

    Crazy Monkey Jr. VIP Jr. VIP

    Joined:
    Aug 4, 2015
    Messages:
    2,331
    Likes Received:
    304
    Gender:
    Male
    Location:
    In Jungle
    you probably in comments.php, see if you can find something very similar to:
    <div class="comment-meta commentmetadata"><a href="<?php .......?>"><?php comment_date() ?></a></div>


    then delete it -
    or maybe better just 'comment it out' like so:
    <!-- <div class="comment-meta commentmetadata"><a href="<?php .......?>"><?php comment_date() ?></a></div> -->


    and delete if you are sure you have done the right thing ;-)
     
  3. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    6,431
    Likes Received:
    3,004
    Occupation:
    blog creator
    Location:
    UK
    you forgot to mention that you must never ever edit the actual core code, always do it in a child theme and never actual theme
     
    • Thanks Thanks x 1
  4. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    7,764
    Likes Received:
    13,921
    Gender:
    Male
    Occupation:
    Death
    Location:
    Southern California
    Home Page:
    Yep, otherwise if or when you update the theme, any changes that you make will be reverted.