What the following CSS trick will do for you:
- When the general block of comments is initiating (.comments-content) a counter called countcomments activates and starts with an initial value of 1.
- Then, each time the code flow goes through a review of any level, either the original comment or a reply (.comment-thread li), it will bring us in front (:before) of the comment's body the number that is the counter.
- Finally, this is incremented in the counter (counter-increment).
Isn't that great? I'm pretty sure many of you have been waiting for this cool trick. So, let's begin applying it for our threaded commenting system.
Steps to add bubble comments count
Step 1: From your Blogger Dashboard, go to Template and click on the Edit HTML button:
... click anywhere inside the code area and press CTRL + F to open the Blogger' search box.
Step 2: Type the following tag inside the search box and hit Enter to find it:
]]></b:skin>Note. you have to click on the arrow next to it, then search the ]]></b:skin> one more time
Step 3: Add the following code just above ]]></b:skin>:
.comment-thread ol {Note:
counter-reset: countcomments;
}
.comment-thread li:before {
content: counter(countcomments,decimal);
counter-increment: countcomments;
float: right;
z-index: 2;
position:relative;
font-size: 22px;
color: #555555;
padding-left:10px;
padding-top:3px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq7Zmf15uwfzL_XRqxDChfmLhSWowGMaRW567Z2AN0M3RPAAodb65qVSELQHDcaOh-GQbxaoBBZfMrcRq0fAfAFuaqZv9hB_RnWYx84YVuA-UOD1S4OP-uzwjlgpN-oTWECuF3nr_Nw3wq/s1600/comment+bubble2.png) no-repeat;
margin-top:7px;
margin-left:10px;
width: 50px; /*image-width size*/
height: 48px; /*image-height size*/
}
.comment-thread ol ol {
counter-reset: contrebasse;
}
.comment-thread li li:before {
content: counter(countcomments,decimal) "." counter(contrebasse,lower-latin);
counter-increment: contrebasse;
float: right;
font-size: 18px;
color: #666666;
}
- if you want to have no bubble icon, remove the code in red (including the address in blue)
- to change the comment bubble, replace the code in blue with the URL address of your own icon. If you're not sure what icon you should use, you can find some cool icons in my previous posts (see these tutorials here and here)
- to change the position of comments count, increase/decrease the values (3 & 10) from padding-top and padding-left
- to change the position of comments bubble/icon, change the values (10 & 7) from margin-left and margin-top
If you enjoy reading this blog, please share and subscribe. For any questions you may have, leave a comment below.
Bluehost Trading MISSISSIPPI MESOTHELIOMA LAWYER Attomey Mortgage Laws and lawyers Web Hosting and Domains Blogs Based On Donations UK Canada Treatment Loans structured settlement annuity companies Insurance Credit Software Rehab ACCIDENT AND INJURY ATTORNEY Donate Car for Tax Credit domain registration yahoo How to donate a car in California · PaperPort Promotional Code Donate Car to Charity California mesothelioma suit Donate Recovery Blogging Making Money online structured settlements annuities Transfer Cord Blood Claim SEO Classes ANNUITY SETTLEMENT AUTO ACCIDENT LAWYER DENVER Attormey Coupons Student Loans Lawyer Hosting NUNAVUT CULTURE Donate cars in ma Car insurance quotes Colorado Dreamhost · World Trade Center Footage Conference Call mesothelioma claim · Better Conferencing Calls Degree Gas/Electricity domain name yahoo Mesothelioma Law Firm online making money Health STRUCTURED ANNUITY SETTLEMENT How much to sell domain name for MOTORCYCLE ACCIDENT ATTORNEY LOS ANGLES DAYTON FREIGHT LINES mesothelioma survival rates mesothelioma attorneys california structured settlement buyer Fastest VPS hosting eCommerce sites


 
No hay comentarios:
Publicar un comentario