Top Ad unit 728 × 90

How To Highlight Author Comments


This post will helps you get special attention in your blog as ' Admin said ' . By using below scripts in your blog author comments will highlight . follow step by tutorial not to get messed .

Note : First Backup your blog template .

Tutorial : How To Backup or restore blogger template

 How To Highlight Author Comments In Blogger 


  1. Go to Blogger dashboard section . 
  2. Now navigate to Edit Html section in Template tab .
  3. Find the ]]></b:skin> in your template . 
  4. Now add the below script ' Before ' it .

.comment-body-author {
    background: #CEF6E3;
    border: 2px solid #FA5858;
    padding: 5px;
}
   5. Save your Template .

Adding Of XML File In Template  : 


  • Find the tag <dd class='comment-body'>  Or  <data:comment.body/> 
  • After finding the above tag . Select the entire code as shown below .

<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>

After Selecting the code now add the below code Before it .
<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>
<b:else/> 

  •  Now add the below code after it .

</b:if>


Job is done ! Save your template 

If you have any difficulties in adding code to template or any errors feel free to comment below your comments always appreciated . 
How To Highlight Author Comments Reviewed by sunny on 09:25 Rating: 5

4 comments:

  1. Thanks a lot for sharing this info. It worked perfectly on my blog Tiny Serval

    ReplyDelete
    Replies
    1. @Sreeraj M Ajay

      Ya sure it will work perfectly , Keep visiting for more updates : )

      Delete
  2. NIce Trick :) Visit My Blog also ;) WwW.gofferkart.CoM

    ReplyDelete

All Rights Reserved by Tech Revert © 2014 - 2015
Powered By WordPress24x7

Contact Form

Name

Email *

Message *

Powered by Blogger.