• Hi,

    Need help please ??

    I’m using the following wordpress theme fusion.2.5 and I need to remove the date and time from all my comments which have been posted, so it just say’s blog post number and there name.

    Look forward to your replies.

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    Not familiar with that theme but in most themes that would be coded in /wp-content/themes/{themename}/comments.php

    In the default theme the code looks like this

    <?php foreach ($comments as $comment) { ?>
    	<li id="comment-<?php comment_ID() ?>">
    	<?php comment_text() ?>
    	<p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
    	</li>
    <?php }

    The line in question is this one

    <p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>

    If I change it to this, date and time are removed

    <p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <a href="#comment-<?php comment_ID() ?>"></a></cite></p>

    You can take out any other code you don’t want. You make the change in your own theme, of course. The code won’t be identical to this code but it will contain <?php comment_date() ?> and <?php comment_time() ?>

    I did this and it did not work.

    inove theme and others (Carrington)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing date and time from comments’ is closed to new replies.