Highlighting the author comment does not mean that the problem of comment section has been fully done.Sometimes author may have to give comment twice.For replying twice it is better to give the comment number to the visitor.One more thing you can add direct jump link to blogger for than just one click you will be taken to that part of comment.For live demo click here.One Screen shot of demo is:
If you wish to do so below are its steps.
II.Numbering Comment in An Easy way.
- Go to blogger.com
- Click on design in old interference and for new interference click on drop menu and click on Template.
- Click on
edit Html - Tick on
expand widget - Find the lines
<b:loop values='data:post.comments' var='comment'>
- Replace step 6 code with
<!-- set comment counter Start --> <script type='text/javascript'> //<![CDATA[ var regexpatt = new RegExp('commentPage=([0-9]*)'); var results = regexpatt.exec( window.location.href ); if(results == null) { var CommentsCounter = 0; } else { var CommentsCounter = (results[1] - 1) * 200; } //]]> </script> <!-- set comment counter End --> <b:loop values='data:post.comments' var='comment'> - Again find this line
<data:commentPostedByMsg/>
- Replace line 8 with this.
<data:commentPostedByMsg/> <!-- Comment count and display START --> <div class='commentnumber' style='font-size: 20px;padding:0 10px;'> <a expr:id='"comment-" + data:comment.id' expr:href='"#comment-" + data:comment.id' title='Comment permalink' style='float:right; margin-top:-20px;'> <script type='text/javascript'> CommentsCounter=CommentsCounter+1; document.write(CommentsCounter) </script> </a></div> <!-- bloggersinker.blogspot.com --> <!-- Comment count and display END -->
- Finally click on save Template.
- Until I have not found error bug etc..
- I hope your wish is fulfilled
II.Styling the code.
You can style the code as your wish like you may add background image etc..
- For styling the widget add the following code just before
]]></b:skin>. - Design that looks better in your Blog.
.commentnumber { /* Add Your Styling code Here */ } - Edit line 2 to style code.
If you have any problem pls comment
Subscribe At free
Thank you for visiting FacebookSinker.blogspot.com. Please don't miss any of the updates by subscribing to our RSS feed or email updates.
No comments:
Post a Comment