How to Add A Comment Count Bubble To Blogger Post Titles
Senin, 16 April 2012
0
komentar
So let's start adding it:
Step 1. Go to Dashboard - Template - Edit HTML (click on Proceed button, if needed)
Step 2. Select "Expand Widget Template" (make a backup)
Step 3. Find - using CTRL + F - the following piece of code in your template:
]]></b:skin>
Step 4. Add the below code just above ]]></b:skin>:
.comment-bubble {
float : right;
width : 48px;
height : 48px;
background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHkkTOniNBqkL1yu6BJjmCDegqyu-dxexvMKZDzI4gsGyJTOxCyQxKFSoJgK0CvogQiCft44JvSNXMZxZVdFWLaYLJ09DYVCsucdnhF8puvvs7x6z22j-x0Ndku8nFFsadCek2AK-vJQoP/s1600/speech+bubble+green.png);
background-repeat: no-repeat;
font-size : 18px;
margin-top : -15px;
margin-right : 2px;
text-align : center;
}
Step 5. Now find this code:
<b:if cond='data:post.title'>
<h3 class='post-title entry-title'>
Note: If you can't find it, search this code instead:
<b:if cond='data:post.title'>
<h3 class='post-title entry-title' itemprop='name'>
Step 6. And add this code immediately after it:
<b:if cond='data:post.allowComments'>
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #ffffff; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>
</b:if>
Note:
- to change the color of the comments number, replace #ffffff with the hex value of your color;
- to change the font size, increase/decrease the 18px value;
Step 7. Preview your template and if everything is ok, click on Save Template.
Comment Bubbles
You can choose one of the images below - right click on the desired image and select "Copy Image Address/Location", then replace the red code from step 3 with the address you just copied.



















That's it! Enjoy (:
You might also be interested in reading this tutorial:
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How to Add A Comment Count Bubble To Blogger Post Titles
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke http://android-rush.blogspot.com/2012/04/how-to-add-comment-count-bubble-to.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh Unknown
Rating Blog 5 dari 5
0 komentar:
Posting Komentar