Latest Posts :
Home » » How To Design Different Comment Style For Blog Author

How To Design Different Comment Style For Blog Author


This trick is used to make different comment box for author. Then, what is the function? Just for style? Not only that, this trick can prevent comments with the same name, so the others know that we are the owner of the blog. Immediately, i will give you the steps.

1. Log in to your blogger account
2. Go to Design>>>Edit HTML, don't forget to backup your template first!
3. Check the Expand Widget Templates box.
4. Copy the code below, and paste above ]]></b:skin>
.comment-body-author {
background: #E6E6E6; /* Background color*/
color: #000; /* Text color*/
border-top: 1px dotted #223344;border-bottom: 1px dotted #223344;border-left: 1px dotted #223344;border-right: 1px dotted #223344;
margin:0;
padding:0 0 0 20px; /* Posotion*/
}
*Change the blue text with your color choice
5. Then, find this code:
<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
said...
</dt>


<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>

<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
6. After that, copy the code below

<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>
<b:else/>

7. And paste under

dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
said...
</dt>

8. Then copy this code

</b:if>

9. And paste under 

<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>

So, the result will be like this
<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
said...
</dt>

<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>
<b:else/> 

<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>

</b:if>

<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
10. If you are done, save now
Share this post :

+ comments + 3 comments

26.5.12

Indeed! the commenter believes that there are lots of valuable fact that can be found in this article.Just what I was looking for and quite thorough as well.The information in this blog was really very helpful.I really appreciate the content of this blog and also the thinking of author.I shall definitely get this content incredibly engaging.Thank you for another fantastic publish. http://www.iquestintl.com

You’ve probably been to some blogs with blog author’s comments highlighted in a color different from other comments. This hack comes with some custom templates but most templates do not have it. Whether you’re using one of those blogger classic templates or a custom one, you can have your comment highlighted in a different color as the blog author. You can check my reply on this blog post to see the demo. The steps below outlines exactly how I did it.

How To Highlight Author’s Comment In A different Color For Blogspot

1. Log in to blogger and go to Design > Edit HTML

2. Click the box labelled Expand Widget Template

3. Press CTRL + F on your keyboard to search for this code:

Post a Comment

 
Support : Website by | Bharadwaj
Copyright © 2012. Easy Blog Tools - All Rights Reserved
Template Created by Easy Blog Tricks Published by Bharadwaj
Proudly powered by Blogger