How to Highlight Author’s Comments in WordPress – Easy Steps

How to Highlight Author’s Comments in WordPress

Do you want to highlight the author’s comments on your WordPress website or blog?

Why needs to be highlighted because you may want your comments to look different than the readers. Also, Highlighting the author’s comments in your WordPress post can help you build visitor engagement.

I have added a quick code snippet guide that you can use to highlight author comments in your WordPress blog.

Instructions to Highlight Author’s Comments in WordPress

WordPress CMS by default includes custom classes for comments that allow you to style them differently, Which is helpful.

One of those classes is “bypostauthor” which is a unique class added to all WordPress comments made by the author of the post allowing you to style comments by the post author differently than readers’ comments.

The easiest way to highlight WordPress post comments by post author is by adding a little bit of custom CSS to your WordPress website theme.

First, you will need to visit the Appearance » Customize” option in the WordPress admin area. This option will take you to the WordPress theme customizer interface. You must also notice many options in the customizer interface on your left and a live preview of your website.

How to Highlight Author’s Comments in WordPress - Easy Steps

Next step: you need to click on the Additional CSS tab. This option will open a text area where you will be adding the Custom CSS.

Add CSS to Highlight Author’s Comments in WordPress - Easy Steps

I’ve added a background color to highlight the author’s comment. You can see the result below.

Highlighted Author Comments in WordPress
You can customize the post author’s comment by adding CSS as per your desire.

For example:

.bypostauthor {
    border: 1px solid #e6e1e1;
    border-left: 5px solid #e6e1e1;
    padding: 20px;
    border-radius: 5px;

I hope this article helped you learn how to highlight post author comments in WordPress. You can send me your line if you need WordPress-related services. Thank you.