Skip to content
UFO Performance Marketing

Where intelligence is put to the test.

HomeServicesCase StudiesBlogAboutContact Us
Menu
HomeServicesCase StudiesBlogAboutContact Us
WordPress · Oct 16, 2014

5 Minute Professional Wordpress Comment Styles

5 Minute Professional Wordpress Comment Styles
JC
John Crenshaw
Oct 16, 2014

Comment styles will really set your blog apart. It's something that is all too often overlooked in blog design, but it's one of those finishing touches that really round out a well-designed WordPress theme. In this article we'll have you styling your WordPress comments like a pro in 5 minutes.

Let's start taking a look at the source code of the comments section. The following screenshot is the source for the default comments on my Default WordPress theme:

Default WordPress comment output
Default WordPress comment output

As you can see, by default, WordPress assigns certain classes to the comments section just to make it easy for you to style it. Here's an image of what's displayed, followed by the same image with the important elements outlined:

WordPress comment styles rendered
How those WordPress comment styles are rendered
Rendered WordPress comment styles detail
Outline of major elements in the rendered comments

So, you should be able to see from the two figures above that we just need to reference the ids and classes that wordpress automatically assigns to the comments in our style.css file.

So, using Figure 3 above as a reference, if we want to style the heading that says "3 Responses to 'An image in a post' " so that the text is blue, we'd need to add an entry to our style.css file like so:

1
2
3
h3#comments {
    color: blue;
}

Then if we wanted to, say, outline the entire comment section with a big, ugly, red 5 pixel border, we'd add an entry to style.css like so:

1
2
3
ol.commentlist {
    border: 5px solid red;
}

As you can see, just by using the classes and ids that WordPress auto-assigns certain elements, you can really control the way comments are displayed. In the future I'll get a bit more specific and show some examples of what can be done with this technique.


WordPress

Get the latest from UFO

Keep reading

More from the blog

All Posts →
ExpressionEngine vs. WordPress - Final Thoughts
WordPress

ExpressionEngine vs. WordPress - Final Thoughts

What I like about ExpressionEngine when compared to WordPress and my final thoughts on the commercial CMS from EllisLab.

John Crenshaw · Oct 13, 2018
Wordpress $post Object Quick Reference
WordPress

Wordpress $post Object Quick Reference

This quick reference / cheatsheet is for the WordPress $post object. This object contains a bunch of info specific to each WordPress post. Scroll down for the complete table of object properties.

John Crenshaw · May 15, 2015
Remove "Briefly Unavailable for Scheduled Maintenance" Message
WordPress

Remove "Briefly Unavailable for Scheduled Maintenance" Message

If you've been keeping on top of your WordPress updates using the automatic upgrade feature, you may have run into a problem immediately after upgrading.

John Crenshaw · Dec 10, 2014

Want results like these?

Let's talk about where you are, where you want to go, and the smartest way to get there.

Contact Us
UFO

Where intelligence is put to the test.

  • Home
  • Services
  • Case Studies
  • About
  • Partners
  • Testimonials
  • Projects
  • Blog
  • Careers
  • Contact Us

Offices

  • Cincinnati, OH
  • Columbus, OH
  • Portland, OR
  • (513) 549-7355
Contact Us
Google 5.0 five star rating Google Ads Premier Partner 2026
© Copyright 2026 UFO Marketing. All rights reserved. Privacy Policy | Terms of Use