• I’m trying to find the code to remove the link that appears in the comment timestamp for a post. I see no purpose for the link and would like to style it differently. I know where the CSS is located, I just need to locate the link code in the PHP files. I’ve performed a search through every theme file and can’t find anything relating to the comment timestamp. I’m editing the Default (Kubrick) Theme for reference.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The KISS method:

    Add this bit to your style.css (bellow line 296 eg.)

    .postmetadata {
         display:none;
    }

    This will make all that paragraph disapear. As the name suggests its Simple & Stupid, but it works.

    MAC ??

    Thread Starter ikcreative

    (@ikcreative)

    Thanks for the reply MAC. Maybe I wasn’t clear enough in my post here, I want to remove the link but keep the timestamp. I see it used on other themes but can’t seem to find where to change in on Kubrick. I already have postmetadata styled the way I want for now.

    If anyone else has a suggestion where the link code is located for the comment time stamp in Kubrick please let me know.

    Thread Starter ikcreative

    (@ikcreative)

    Ok…since no one responded in more detail about this post here’s what I found out which may help some with formatting WP post comments:

    My solution for altering the Kubrick template was simple. I located the exact CSS by viewing my source code in the browser, and targeted it with a new style. The timestamp in comments is still a link but it doesn’t look like one. If anyone still knows how to remove the link to the timestamp without adding code to the function.php let me know.

    Special thanks goes to: Scriptgoddess.com for her wonderful work on explaining WP code to the rest of us. Check out this great post with good links to other posts on wp_list_comments This post is a few months old but has relevant information for the current release 2.8.5.

    Also I’d like to thank: cdharrision.com for excellent information on CSS for WP Comments for 2.7 and beyond!

    Thread Starter ikcreative

    (@ikcreative)

    Want to make a correction: the name is Scriptygoddess.com my link is correct above though…

    and I would like to thank YOU, ikcreative, for taking the time and care to share these links. You’re a lifesaver! Now I can stop chasing my tail ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Comment Timestamp Link in Kubrick Theme’ is closed to new replies.