Highlighting and customizing author comments differently from visitor
comments is a very important step that you must take as soon as possible
because this will make author comments more prominent to the visitors
and will therefore encourage visitors to take part in the discussion and
better communicate with the author. The blogger comment block consists
of three important sections which are,
5. Just above it paste the CSS code below,
Make these changes:
Tip: Press Crtl +F and search for one line at a time
<data:commentPostedByMsg/>
</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>
7. Replace it with the following code,
<data:commentPostedByMsg/>
</dt>
<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body'>
<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>
8. Save your template and you are done!
- Comment-author
- Comment-body
- Comment-footer
Highlight and Customize Comments in Blogger
- Go To Blogger > Design > Edit HTML
- Backup your template
- Check "Expand widget templates" Box
- Search for this.
5. Just above it paste the CSS code below,
.comment-body {background: #FFFFFF;color: #008000;border: 1px solid #008000;margin:0;padding:0 0 0 10px;width:520px;}
Make these changes:
- To Change the background color of author comments change #FFFFFF
- To change font color change #008000
- To change border size change 1px, to change border style change to solid, dashed or dotted and to change the color of the border change #008000
- To change the width of the comment body change 520px
Tip: Press Crtl +F and search for one line at a time
<data:commentPostedByMsg/>
</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>
7. Replace it with the following code,
<data:commentPostedByMsg/>
</dt>
<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body'>
<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>
8. Save your template and you are done!
0 comments :
Post a Comment