Today's tutorial will take blogger comment system one step more closer to wordpress commenting engine. I was amazed today when I discovered that W3 has already introducedan excellent way of automatically numbering lists in a HTML structure using pure CSS3 properties like counter-reset and counter-increment. Both these functionality provide a non-JavaScript approach to show comment counts for threaded and nested comments in blogger. MBT has contributed a lot in changing Blogger's Comment-body Styles for the past three years and this time we are introducing an interesting trick to add more spice to your blog comments. We are using a non-JavaScript approach unlike Wordpress's popular plugin called Greg's threaded Numbering
Lets Count Comments in Blogger!
For this tutorial to work you must be using threaded comments in your blogger templates. If you have not yet switched to that then please do so by reading the following tutorial:
- Go to blogger > template
- Backup your template
- Click Edit HTML
- Search for </b:skin>. Click the black arrow to expand the code.
5. Paste the following Styles just above </b:skin>
Customization:
- You can adjust the font size and color of comment counts for Main section using theyellow highlighted regions
- To edit the font size and color of sub sections (nested replies) change orangehighlighted regions
- lower-latin: Nested replies for first comment are counted in this order 1.a, 1.b, 1.c ... If you wish to display them in roman like 1.I, 1.II, 1.III, 1.IV... then replace lower-latin with Upper-roman, if you wish to display them as integers then change it to decimal. Following are some other styles you can use for nested replies: lower-greek, circle, square, disc, lower-roman
6. Save your template and you are all done!
No comments:
Post a Comment
Please feel free to comment regards this post