WordPress has feature rich in-built commenting system. By default, it allow website visitors to comment on various posts and pages content. As a post author you can reply to any comment by adding own comments. In a post with lots of comments, your comment might get lost. One easy way to make your comments stand out is to highlight post author comments.

CSS code for highlighting Post Author comments

Add following code to your style.css file. It adds background color #ddd to post article author Comments. It also adds padding for more prominent highlighting of post author comments.

.bypostauthor {

You can also add more style elements to .bypostauthor class like: background image, margin, border, etc to give distinct style to comments added by post’s author. Remember to clear cache to see changes made by above code.

Davinder Singh Kainth

A digital creator with 15+ years of experience in Website Design, Development, SEO, and Content Creation to Podcasting at SmartWebCreators.com with the motto of "Be Smart, Keep Creating". A coach, consultant, and your dear geek friend ❖

Leave a Comment