
How to highlight the author comments in blogger blogs. This will help to Commenters can find author comments easily with this hack. Blog Author comments are highlighted differently to normal style. Many blogger are using this hack in their blogs. No other plugins are needed. Using a small Xml template hack we can change style of author comments. Installing of this hack little bit difficult to other hacks.
How to Add this ?
There Are Two Steps For This Hack- Adding CSS Code
- Adding Xml Code
First Step:-
Backup your template before applying this hack
Second Step:- Adding CSS code
- Login to your Blogger Dashboard
- Select Design Section
- Choose Edit HTML tab
- Check Expand Widgets (i.e., Tick Expand Widgets check box)
- Find ]]></b:skin> Tag in Your template
- Add Bellow code Before it
.comment-body-author {
background: #CEF6E3;
border: 2px solid #FA5858;
padding: 5px;
}
#Change Background and Border Colors as you needNow Save your template
Third Step:- Adding Xml Code
Add this code very carefully
- Find the following section of code in your template
- I am not sure the code exactly like bellow
- But <data:comment.body/> tag must present in code
- So Find <data:comment.body/> tag and then select entire code like bellow
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p></p>
</b:if>
</dd>
After finding code successfully then Add Bellow code Before it
<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>
<b:else/>
and Add bellow code After it
</b:if>
After adding Above two codes then
Save your template and check your Comments
Your final change in code like bellow
<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>
<b:else/>
</b:if>
Any difficult to install this then don't hesitate to ask me via comments Your comments are always appreciated except spam.






13 comments:
Very helpful tutorial—I suppose you could do the same thing using CSS in the b:if tags, though I haven't tried it for the author comments.
Very nice. You share a very informative article. It is very useful for me and many. Thanks for sharing.
I did this, but there is one comment highlighted and an identical comment below it not highlighted...I have two comments?
Using
<b:if cond='data:comment.adminClass == data:post.adminClass'>
or
<b:if cond='data:comment.authorUrl == http://www.blogger.com/profile/ID'>
HOW CAN YOU DO THIS KIND OF EFFECT WHERE U CLICK ADD COMMENT AND IT BRINGS U DOWN RIGHT TO THIS BOX??????
@Wero M.M.
When ever you create a link We must use Url But here we use Unique CSS ID of Current Page. On click it will redirected to Unique CSS ID Area
For Suppose
<a href="#comment-form" >Add Comment</a> is "Add Comment"
Check Out This links
Go to Top
View Post
View Comments
Hey i successfully installed this code but the author name is not showing as like yours.
Please explain this in simple form i m bignner
its not working for me
How to highlight at: Harish said as you?
Thnxxx For this looking damn cool check out mine http://onsecrethunt.blogspot.com
its not working for me
Post a Comment
Drop Your Comments, Suggestions And Questions Below.
To Be Notified Of Replies Click The 'Subscribe By Email' Link Below The Comment Form.
Do Not Add Links To The Body Of Your Comment As They Will Not Be Published.