remove comment date from wordpress blog

by jbode
6 replies
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
#blog #comment #date #remove #wordpress
  • Profile picture of the author SteveJohnson
    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.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[1836922].message }}
  • Profile picture of the author digital29
    Open your comment.php file from the theme, search for a function called "comment_date();" and delete that line
    {{ DiscussionBoard.errors[1838828].message }}
  • Profile picture of the author VictorDamasio
    It doesn't wor anymore.
    {{ DiscussionBoard.errors[7304086].message }}
  • Profile picture of the author lordspace
    you should be able to hide with CSS
    Signature

    Are you using WordPress? Have you tried qSandbox yet?

    {{ DiscussionBoard.errors[7307867].message }}
    • Profile picture of the author webpeon
      Originally Posted by lordspace View Post

      you should be able to hide with CSS
      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.
      Signature
      Web 2 Mobile
      The Future of The Web
      {{ DiscussionBoard.errors[7311030].message }}
  • Profile picture of the author cgimaster
    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>
    {{ DiscussionBoard.errors[7311158].message }}

Trending Topics