October 26, 2007

Highlight Author Comments in WordPress

Written by: Juanchito

Today I was reading over some information about using Google Apps with your own domain and I just happened to see a post about highlighting authors comments in WordPress. I’ve seen it all the time in Techcrunch and I really like that they do that. I’ve just always been too lazy to change my template to search for how it was done. Turns out that it’s really easy. In fact, the link I sent above makes it sound harder than it really is.

I basically added an If the comment author email equals the admin’s email account, then list a style. Otherwise, don’t change the style of the comments. How do you like that pseudocode? Anyway, it was really easy to do if you know php and css. As I did it, I realized that my css still needs a lot of work. However, I think it turned out pretty good. I think the comments look much nicer with a little color.