remove comment date from wordpress blog

by 6 replies
8
hey warriors, just wondered if anyone knows how to remove comment dates on wordpress?

I've searched all over & have tried removing portions of php code for my theme
#programming #blog #comment #date #remove #wordpress
  • Just a matter of modifying the correct template, usually 'comments.php'.

    EDIT:
    If you want to PM me your URL, I'll take a quick look. Should be pretty easy.
  • Open your comment.php file from the theme, search for a function called "comment_date();" and delete that line
  • It doesn't wor anymore.
  • you should be able to hide with CSS
    • [1] reply
    • this is the better option, deleting core functions could cause trouble during wp updates.

      A link to your website would clear this up nice n quick. Pm me if u like i,ll be in the office within the hour.
  • If you have php knowledge you can make a hook to remove the date as a plugin.

    Or like it was recommended above, you could add to your CSS theme something like this:

    Class
    Code:
    .yourcommentDate { display:none }
    Code:
    <span class="yourcommentDate">08 Nov 2012 at 06:21</span>
    ID

    Code:
    #yourcommentDate { display:none }
    Code:
    <span id="yourcommentDate">08 Nov 2012 at 06:21</span>

Next Topics on Trending Feed