Highlight author comments
-
Hi there! I know there’s a lot of threads regarding my question, I’ve used the search but i can’t find none of my needs. Here’s what I’m looking for:
I want to make the author comments have a different color, the code I’m using is making that possible but after changing the design is not possible anymore.
The actual code for the comments:
<div id="comment-<?php comment_ID(); ?>" <?php comment_class('hentry'); ?>> <address class="vcard author entry-title comment-author"> <?php if (function_exists('get_avatar')) { ?> <span class="photo avatar"><?php echo get_avatar($comment, 60) ?></span> <?php } printf(__('%s', 'carrington-blog'), '<cite class="fn">'.get_comment_author_link().'</cite>'); ?> </address><!--.vcard--> </div><!--.comment--> <div class="entry-content comment-content"> <?php if ($comment->comment_approved == '0') { ?> <span class="revision"><?php _e('()', 'carrington-blog'); ?></span> <?php } comment_text(); ?> </div><!--.entry-content-->This actually checks the author in the vcard so when I try to change the color it doesn’t change it in the “entry-content”. See an screenshot here: http://i42.tinypic.com/24f0dco.jpg (pink = author)
So in other words, I need a function or something that check for the author in the “entry-content” div, and if it is, change the colors through css.
Any ideas? Thanks in advance!
The topic ‘Highlight author comments’ is closed to new replies.