Numbered Comments On Threaded Comments For Blogger/Blogspot
In a previous tutorial you've seen how you lot tin add together numbered comments to your blogger blog, unfortunately, this play a joke on worked entirely for those who don't choose the respond selection as well as are even hence using the one-time blogger commenting system. But nosotros won't choose whatever occupation this fourth dimension because this tutorial volition demo you lot how to add together numbered comments amongst comment bubbles on the threaded comments, also ;)
What the next CSS play a joke on volition produce for you:
Isn't that great? I'm pretty certain many of you lot choose been waiting for this cool trick. So, let's laid about applying it for our threaded commenting system.
Steps to add together bubble comments count
Step 1: From your Blogger Dashboard, instruct to Template as well as click on the Edit HTML button:
... click anywhere within the code expanse as well as press CTRL + F to opened upward the Blogger' search box.
Step 2: Type the next tag within the search box as well as hitting Enter to notice it:
Step 3: Add the next code only above ]]>:
If you lot relish reading this blog, delight percentage as well as subscribe. For whatever questions you lot may have, instruct out a comment below.
What the next CSS play a joke on volition produce for you:
- When the full general block of comments is initiating (.comments-content) a counter called countcomments activates as well as starts amongst an initial value of 1.
- Then, each fourth dimension the code period of time goes through a review of whatever level, either the master comment or a respond (.comment-thread li), it volition convey us inward front end (:before) of the comment's trunk the set out that is the counter.
- Finally, this is incremented inward the counter (counter-increment).
See the screenshot:
Isn't that great? I'm pretty certain many of you lot choose been waiting for this cool trick. So, let's laid about applying it for our threaded commenting system.
Steps to add together bubble comments count
Step 1: From your Blogger Dashboard, instruct to Template as well as click on the Edit HTML button:
... click anywhere within the code expanse as well as press CTRL + F to opened upward the Blogger' search box.
Step 2: Type the next tag within the search box as well as hitting Enter to notice it:
]]>Note. you lot choose to click on the arrow adjacent to it, as well as hence search the ]]> i to a greater extent than time
Step 3: Add the next code only above ]]>:
.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/AVvXsEhaaLMvNvt5I03J8ltBW7NQFFYeFraZAxaTb7j-knFLQYK0vqjrEfAz7V_EL21ewDuPnWxbdvbjx2ORajHuYW-2jo1gqY6RP25mwHsw_gXXsf53bxuYIrL1W6GGXU3-y2Ucgl84yJqx_QIQ/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 lot desire to choose no bubble icon, take away the code inward red (including the address inward blue)
- to alter the comment bubble, supersede the code inward blue amongst the URL address of your ain icon. If you're non certain what icon you lot should use, you lot tin notice roughly cool icons inward my previous posts (see these tutorials here as well as here)
- to alter the seat of comments count, increase/decrease the values (3 & 10) from padding-top as well as padding-left
- to alter the seat of comments bubble/icon, alter the values (10 & 7) from margin-left as well as margin-top
If you lot relish reading this blog, delight percentage as well as subscribe. For whatever questions you lot may have, instruct out a comment below.