Highlight & style Post Author comments in WordPress

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.

iGuiding Make Websites

Create a 'Happy' website today

An awesome Mobile Responsive website powered by: Genesis Framework, WordPress, HTML5, CSS3 & personal attention.

Leave a Reply