Previous Post was about Customizing Blogger Comment Form in which we have learned how to make your blogger comment box attractive and now we move to the next step its about authors comments. 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:
6. Next search carefully for this code in your template,
Tip: Press Crtl +F and search for one line at a time
7. Replace it with the following code,
8. Save your template and you are done!
Visit your blogs and see that the author comments now looks different from the visitor comments,
Let me know if you faced any problem. Would be a pleasure helping you. In my next post I will share several ways of customizing author comments. Have Fun! :)
- 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.
]]></b:skin>
5. Just above it paste the CSS code below,
.hws-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
6. Next search carefully for this code in your template,
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>
<!-- www.hackwithstyle.com author comment script starts here -->
<b:if cond='data:comment.author == data:post.author'>
<dd class='hws-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!
Visit your blogs and see that the author comments now looks different from the visitor comments,
Let me know if you faced any problem. Would be a pleasure helping you. In my next post I will share several ways of customizing author comments. Have Fun! :)
Subscribe To Get FREE Tutorials!
Respected Readers:
|
2 comments:
The article was up to the point and described the information about education and learning. Thanks to blog author for wonderful and informative post. US Business Funding
Extremely useful information which you have shared here about patient management software. This is a great way to enhance knowledge for us, and also beneficial for us. Thank you for sharing an article like this.
Confused? Feel free to ask
Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.
Post a CommentNote:-
Please do not spam Spam comments will be deleted immediately upon my review.
Regards,
XEO Hacker