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 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.
- Is Social Networking Marketing Helpful for Each Business?
- Five Methods of Becoming More Valuable to Your Social Networking Audience
- Invoicera- An Extraordinary & Cost-Effective Solution To Tackle Your Invoicing Requirements Effortlessly
- Blunders you Need to Avoid In an Email Marketing Campaign
- Things to Lookout for When Finalizing Topics For Guest Blogging




{ 5 comments… read them below or add one }
Keep posting stuff like this i really like it.
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.
Very outstanding site.
The information here is very useful.
I will tell my friends.
Cheers
Very good concept, I like how you convey the msg.
Thanks you for the wonderful information.