Blogging Underground- Top Traffic Ranking System Check Here
  Share

How to Highlight Author’s (Admin) comments in wordpress

by Bilal Ahmad on November 5, 2009

In my previous posts i wrote about how to add Favicon to wordpress blog, adding retweet button,  and changing the defult gravatar in wordpress. Now in this post we are going to highlight the Admin Comments.

If you are running a blog where users are posting allot of comments. Then it is very difficult for every one to know that which one is the Author or Admin comment. So it is necessary for you to separate the admin comments from normal comments. Separate means to highlight.
Although there is a plugin available which can do the same job, but it is not a good idea to upload allot of plugins to your wordpress directory, specially if your webhosts is not allowing you unlimited space. Then it is better to manually insert a simple code in your Style.css

 How to Highlight Authors (Admin) comments in wordpress

How to Highlight Author’s  (Admin) Comments.

First of all Go to wordpress Dash board and click on Appearance and then Editor. Now open the Style.css

Now copy this code in your style.css

.authorstyle { background-color: #B3FFCC !important; }

Now find this code in Style.css

<li <?php echo $oddcomment; ?>id=”comment-<?php comment_ID() ?>”></li>

And replace the whole code with this code

<liauthorstyle”; echo $oddcomment; ?>”></li>

Don’t forget to change 1 to the user ID of the Admin. If you don’t know that what is the ID of Admin. Simply click on User from Dash Board and put the mouse on admin. There you will see a ID on the Status Bar of your browser.


Previous Posts by Bilal Ahmad
Related Posts:
  1. WordPress 3.0.1 Released- Why Upgrade?
  2. Add Facebook Comments Form In WordPress Blog
  3. Display Random or Rotating Images in wordpress Header
  4. WordPress 3.0 Released- New Features Added
  5. How to Add or Show Gravatar For Comments and Author Profile

{ 5 comments… read them below or add one }

forex robot November 18, 2009 at 1:42 pm

Keep posting stuff like this i really like it.

Reply

forex_account_ November 24, 2009 at 7:54 am

I like this place really much.

This is such a outstanding website.
And it is not like other money directed place, the information here is super helpful.

I am definitely bookmarking it as well as sharin it with my friends.

:)

Reply

Anonymous November 25, 2009 at 9:31 am

Very outstanding site.
The information here is very useful.

I will tell my friends.

Cheers

Reply

freem_ovies.online December 5, 2009 at 6:48 pm

Very good concept, I like how you convey the msg.

Reply

reverse cell phone lookup January 10, 2010 at 12:53 pm

Thanks you for the wonderful information.

Reply

Leave a Comment

 

Previous post:

Next post: