Highlighting author comments help readers differentiate them from readers’ comments. This is especially useful, for example, when a reader come back to check on a reply to his/her question. Highlighting your reply/answer, will make it easier to spot. Remember, making things easier for your readers is a good thing.
I make this quiet simple by using my own tricks.

How To Highlight Author Comments ?


  • Login to your to your Blogger account.
  • Go to Dashboard > Design > Edit HTML.
  • Back up your template.
  • Tick the Expand Widget Templates check box on top right of the HTML window.
  • In the code window, look for this code:
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
<b:include data='comment' name='commentDeleteIcon'/>
</b:if>


Note - The code responsible for displaying comments is <p><data:comment.body/></p>
in line 4. (There is similar code in line 2. Leave that one alone, it’s for deleted comments.)

Now replace the code in line (Highlighted with red color) with below code -  


<!--author comments highlight Start-->
<b:if cond='data:comment.author == data:post.author'>
<p style='color: #FF0000; font-weight:bold;'><data:comment.body/></p>
<b:else/>
<p><data:comment.body/></p>
</b:if>
<!--http://btsnts.blogspot.com -->
<!--author comments highlight End-->

Customization


Now if you want to change the color of the text then use our Hex Color Code Generator. If you can't highlight your comments then please mention your problem in comments.....

Post a Comment

  1. i didnt get a highlighted comment,plz see my blog http://novicebuzz.blogspot.in/

    ReplyDelete
  2. Nice post dude, you have to check my website.

    ReplyDelete
  3. Quite a good tip. Thanks for the info i'm using your method to highlight author comments in blogger. Check out my mega website centpage :Your all-in-one homepage.

    ReplyDelete
  4. Hi… I am Rakesh When I was worry with our wrinkle then I have heard about famous wrinkle reduction clinic klinikesthetika .This clinic provide a best treatment in skin and I also belived on it. If you want to more detail contact on +91-9958483335.

    ReplyDelete

  5. Hi! I am Munna Singh before some days I was very worry with our skin surgery with any one I heard about Skin Specialist in Delhi in Klinikesthetika clinic. Then I used this service and I got a best treatment for skin. Now I am very happy to use this service.

    ReplyDelete
  6. superb tutorial thanks for sahring with us . .

    ReplyDelete

If you want to be informed about any replies then check "Notify me" option (present at lower right corner of comment box and it will display if you are logged in to your google account).PLEASE DO NOT SPAM

 
Top