In this simple tutorial for beginners, i’ll provide several small blocks of CSS code which you can use to change the background color of all replies to comments made by the administrator.
Here’s what the default comments list looks like on the new Lifestyle Pro child theme by StudioPress.
And here’s an example of what the comments list looks like after adding a background color to the admins comment only.
All you need to do is add this CSS code near the end of your child themes style.css file before the Media Queries start.
.comment-list .bypostauthor > article,
.comment-list .children > .bypostauthor > article {
background: red;
padding: 25px;
}
.comment-list .bypostauthor > article,
.comment-list .children > .bypostauthor > article p,
.comment-list .children > .bypostauthor > article a {
color: white;
}
Note: There are other ways to highlight any authors comments however this is the easiest and won’t be lost when you update Genesis.
Was This Tutorial Helpful?