# Highlight Comments by the Post Author

> Gives replies written by the author of the post a colored left border so readers can spot them in long threads.

- Type: CSS
- Runs: Site-wide header
- Category: [Comments](https://wpide.com/library/category/comments/)
- Tags: comments, css, author
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/highlight-post-author-comments/

## Code

```css
.comment.bypostauthor > .comment-body,
.comment.bypostauthor > article {
    border-left: 3px solid #2271b1;
    padding-left: 1em;
}
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Highlight Comments by the Post Author" in its snippet library and add it in one click; or create a new CSS snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
