Results 1 to 2 of 2

Thread: How to remove link in comment date?

  1. #1
    Thread Starter
    Junior Member
    Not a Verified Customer
    hewitt's Avatar
    Join Date
    Apr 2009
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to remove link in comment date?

    How can I remove the link in the date that appears in each comment? I just want the date to be visible, but I don't want it to be clickable. How can this be edited? Thanks!

  2. #2
    Veteran taylerj's Avatar
    Join Date
    Apr 2009
    Location
    Las Vegas, NV
    Posts
    380
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Re: How to remove link in comment date?

    Just be warned this has nothing to do with the Classipress theme. You will need to edit the Wordpress files to do this. if you ever update your site you'll need to redo this.

    Open wp-includes/comment-template.php

    Go to about line 1270 and look for this code.

    Code:
    <div class="comment-meta commentmetadata"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?><?php edit_comment_link(__('(Edit)'),'','') ?></div>
    Change it to this code.

    Code:
    <div class="comment-meta commentmetadata"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?><?php edit_comment_link(__('(Edit)'),'','') ?></div>
    Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need comment ..
    By sonnycool in forum Showcase & Feedback
    Replies: 8
    Last Post: April 24th, 2009, 02:24 PM