DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Due to the new comments system in WordPress 2.7, and the wp_list_comments() function, you have to change the way you style author comments. But don’t worry, I’m going to show you how to do.

With previous WordPress versions, you had to use some hacks to be able to give a special style to author comments. But this isn’t needed with the brand new WordPress 2.7: A specific CSS class is automatically added by WP to author and registered users comments.

To style author and registered users on WordPress 2.7, simply paste the following code in your style.css file, and style at your taste :)

li.bypostauthor { 
    /* CSS styles for author comments */

li.byuser { 
    /* CSS styles for registered users comments */

Leave a Comment

Your email address will not be published. Required fields are marked *