Support » Themes and Templates » Changing Comments Link Color

  • I want to be able to change the color of my No Comments/1 Comment/2 Comments link on my main page to red if there has been 1 or more comments. Where can I add a class name to attach CSS styles with?

Viewing 6 replies - 1 through 6 (of 6 total)
  • CSS and the structure of the two WordPress Themes that come with the installation are discussed here, specifically aimed at the comments section:

    Each theme may be a little different but this will help, along with this article that will help you find CSS styles and how to change them:

    I’m having the same problem as you Brad….on hover I have my comment link exactly as I want it. It’s customizing the active part on the link that has me stumped.

    My problem isn’t in changing the CSS styles, I’ve developed my own theme so I’ve done plenty of that.

    But I need to be able to attach a class name to the comments link ONLY if there has been 1 or more comments made. As you can see on my website,, the links are small and blue, but I want to make a link that says “1 Comment” or “5 Comments”, etc. bold and red. But I want to keep the “No Comments” small and blue like the rest of the links.

    Can this be done?

    You’ll need some kind of conditional “if else” statement probably – I don’t personally know how to do that. Kafkaesquí, macmanx, and Denis deBernardy are the gurus for that….

    Hmm, how do I approach them respectively?

    You may want to start a new thread asking for help with conditonal tags and comments.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing Comments Link Color’ is closed to new replies.