In order to save them that stress,it is very necessary to highlight your comments "as a blogger".
Apart from the stress being curbed in the process,it also helps to dignify a blog author's comment amongst several others.
Before we proceed with this tutorial,you might want to spare a little time to go through the following tutorials →- Add a Reply Button To Blogger Comments.
- How To Change “Post A comment” Text in Blogger.
- How To Customize Blogger Comment-Message.
- Add a Comment Policy To Blogger.
- Numbered Comment Hack For Blogger Blogs.
How To Highlight Author Comments in Blogger.
First,Login to Blogger.Go to Design/Layout→→Edit HTML.[Backup your template in case something goes wrong.]
Check the box next to
Expand Widget Template and search for the following piece of code by pressing CTRL+F
<p><data:comment.body/></p>
Note»The above code will be seen twice,you have to use the second
Next,Replace the code found above with the following snippet of code.
<b:if cond='data:comment.author== data:post.author'>
<p style='border:1px dotted#008e00; color:#00ff00;background:#d80000;width:auto;padding:4px;'>
<data:comment.body/></p>
<b:else/>
<p>
<data:comment.body/></p>
</b:if>
<p style='border:1px dotted#008e00; color:#00ff00;background:#d80000;width:auto;padding:4px;'>
<data:comment.body/></p>
<b:else/>
<p>
<data:comment.body/></p>
</b:if>
Having done that,preview your template then finally save it.
To change the color,background,border style etc of the comment,simply play around with the css codes highlighted in the snippet above and that will be all.
Tidak ada komentar:
Posting Komentar