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.

1
2
3
4
.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

Speak Your Mind

*

Subscribe to our mailing list

* indicates required
Close