How to Highlight Author Comments in WordPress using CSS

Many blogs highlight the author’s comment in the comments section. I’m talking about how to highlight comments posted by the author of the article. You can use many plugins to get this effect (For eg., the Highlight Author Comments Plugin) – but you don’t have to. You can get the get the same effect by adding a small bit of CSS code to your theme.

Highlighting Author Comments in WordPress
Highlighting Author Comments in WordPress

Most snippets will target and try to find author’s email or user id, but that actually slows your site down. Why not using CSS selector and find author’s comment and change the background color so it is easily pointed out. Pretty smart. After that, it was a simple matter of times to see the result.
My default comments loop in comments.php

View the HTML code:


  • How to Highlight Author Comments in WordPress using CSS 1 Narga says:

    I’ve saw 5 people who commented on this post. I’ll take random with they only.
    Those who Subscribed, write comments in here to get 1 Month FREE RapidShare Premium Account

  • Open the “style.css” and near the bottom added these lines:

    .authcomment {  
           background-color: #B3FFCC !important;  
    }

    And, that’s it! We hope that you find it useful!

    1 thought on “How to Highlight Author Comments in WordPress using CSS”

    1. Hhe article’s content rich variety which make us move for our mood after reading this article. surprise, here you will find what you want! Recently, I found some wedsites which commodity is colorful of fashion. Such as xxxxxxxx that worth you to see. Believe me these websites won’t let you down.

    Leave a Comment

    This site uses Akismet to reduce spam. Learn how your comment data is processed.