Posted by KaiseRCrazY on 1st October 2009
Highlight the Author Comments!
You can seperate the author comment from the reader comments. That’s needed some change in your css file and comments.php file. After that author comments shown in a different background color. Let’s begin…
Here is the code;
First one in comments.php file. Find this code;
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
And change with this one;
<li class="<?php if ($comment->user_id == 1) $oddcomment = "authorstyle"; echo $oddcomment; ?>"
After that open your style.css file and add this lines in to it;
.authorstyle {
background-color: #B3FFCC !important;
}
That’s All. Have a nice day!
This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.
-
Categories
Colored Tags
article Loop Wordpress site feed mysql blog else author comments theme title header.php single.php robots template comments.php functions.php Google Yahoo Widget image RSS hide categories posts no-index function style.css Facebook index.php css Functions content post category funcitons sidebar spiders javascript time if code plugin commentRecent Comments
Archives
Blogroll
Google Ads















Made by Symmetric Web
Distributed by Smashing Magazine
No comments yet!