• Resolved hinhthoi

    (@hinhthoi)


    Hi,

    I am trying to either remove or change the timestamp of comments. I search a lot about this but haven’t found the solution. I believe there should be way to do this, maybe in Template and Theme sections, but someone in the internet says it is not possible because the time of comment if integrated with WordPress installation, so no way to change.

    Thank you very much for any help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Look at your page.php template (or the custom page template you are using for your static pages) for:

    <?php the_time(); ?> or <?php the_date(); ?>

    These are the functions that output the time/date. Just delete or comment them out.

    Regards
    [signature moderated per forum rules]

    I am trying to either remove or change the timestamp of comments.

    this will depend on your used theme.

    please post a link to your site, pointing to a post or page with the problem.

    if you are referring to the site linked to your user name, try to add to style.css of your theme:

    .commentmetadata { display: none; }

    or

    .commentmetadata { visibility: hidden; height: 5px; }

    Thread Starter hinhthoi

    (@hinhthoi)

    great! Thank alchymyth. I used the second code and it works like a charm!
    The method suggested by amitrca does not work for me

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to remove comment timestamp’ is closed to new replies.