Highlighting Wordpress Comments with CSS Sunday, Jul 6 2008
Wordpress 3:28 am
Ever notice how some Wordpress blogs make it a little more obvious when author comments on his own posts? For some crazy reason, that’s not a standard feature in Wordpress, but can easily be done with a little PHP and CSS.
There’s probably already a Wordpress plug-in that does this, but some things are so easy to do that I just change the code in the theme editor. That’s the case with highlighting your own comments on your Wordpress blog for a more official look and to keep jackasses from pretending to be you.
This method checks against the user ID, rather than an email address… which could be guessed.
If you’re already lost, just look at the first two comments from me at the bottom of this post, one of which I’ll logout for.
It’s easy enough to do, as it only requires one little code insert in comments.php and a CSS class defined in style.css.



