Styling Author Comments
Styling comments by a post’s author is actually quite simple. WordPress adds a class to any comment written by the post’s author that will let you target these comments for CSS styling. This class is called bypostauthor. To edit the styling of an author’s comments, simply add li.bypostauthor to your theme’s stylesheet and add your custom styles. For example, my blog’s comments are set to a grey background but I want my replies to be a white background. The CSS for this looks like:
li.bypostauthor { background-color: #fff; }
Pretty easy, right?
Leave a Reply