Highlight & style Post Author comments in WordPress

By Davinder Singh Kainth - October 29, 2012

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 { padding:20px; background-color:#ddd; }

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.

Share this

About Davinder Singh Kainth

Davinder loves creating & implementing online spaces. He has over a decade of experience reaching corners of: design, development, blogging and SEO. He also create digital products at SimpleProThemes.com and digital solutions at iGuiding.com and Beaver Builder goodness at ProBeaver.com

About BasicWP is about: sharing and learning the WordPress ecosystem for website design and development. Hello... I'm Davinder Singh Kainth.
I have been into "all things internet" building cool online spaces of knowledge.