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!

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

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.

No comments yet!

Post your comments