Have you ever seen this on blogs where author’s comments are distinguished from other comments? Well this is a simple and easy trick.
First you need to open your style.css in your template folder and add the following:
1 | .authorstyle { background-color: #B3FFCC !important; } |
1 | <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"></li> |
1 | <li class="<?php if ($comment->user_id == 1) $oddcomment = "authorstyle"; echo $oddcomment; ?>"></li> |
Thanks to Matt Cutts for this tutorial.

No comments:
Post a Comment