Last night I was working on styling comments in the upcoming version of Marketers Delight and I discovered something that’s always been a curiosity in the back of my mind.
If you’re familiar with the WordPress comments system, you’ve more than likely styled author comments by targeting the
bypostauthor class WordPress automatically outputs to author comments.
This class is very useful as you can write custom CSS to make an author comment look different from everyone else’s comments. For example, you could change the background or border color to make it stand out a little more.
The problem is, it’s just CSS. If you wanted to do something like add a text badge next to the author’s comment that says something like “Post Author”, you’d either have to write a bunch of pseudo CSS or write some strange PHP (I’ve Googled this, and there aren’t any *great* answers).
Continue reading →