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,700
    Likes Received:
    353
    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:
    8,388
    Likes Received:
    4,358
    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 Super Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    11,907
    Likes Received:
    17,226
    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.