Skip to main content

Add a Comments Counter Button to Blogger Blogspot

In this Blogger tutorial (Blogspot tutorial) you will learn how to add a comments counter button to Blogger (Blogspot) to show off the number of comments each of your posts has received.

A comment counter button (bubble) will have the effect of encouraging visitors to comment on your Blogger blog and also help to highlight the credibility of your articles.


Installing this Blogger hack to add a comment counter button only takes a few minutes. The changes needed to add the comment bubble to Blogger while not difficult do involve adding a small snippet of code to your Blogger template in two places. For this reason I strongly urge you to back up your Blogger template before attempting this blogger hack.

Blogger Tutorial Difficulty - easy to medium


How to Add a Comments Counter Bubble to Blogger
A Step-by-Step Walkthrough
The following steps will insert a fully clickable comments counter button on the same line as the post title in Blogger. The comments counter is right aligned by default.

  1. Log in to Blogger and the blog you wish to apply these changes to

  2. Select Design > Edit HTML

  3. Click on Download Full Template to back up your template before you make any changes

  4. Check the Expand Widget Templates box

  5. In the CSS Styling section of your Blogger template and just before the ]]></b:skin>

    .comments-button {
    width : 48px;
    height : 48px;
    background : url(http://3.bp.blogspot.com/_vLeiVavkV_M/TRqeSsZYiYI/AAAAAAAADw0/NKcU4q-Vbq4/s200/comment-counter-bubble.png) no-repeat;
    float : right;
    font-size : 18px;
    margin-top : -15px;
    margin-right : 2px;
    text-align : center;
    padding-top:10px;
    }

  6. Now find the following block of code using CTRL key + F

    <b:includable id='post' var='post'>
    <div class='post hentry uncustomized-post-template'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
    <h3 class='post-title entry-title'>
    <b:if cond='data:post.link'>
    <a expr:href='data:post.link'><data:post.title/></a>

  7. Copy this code block:

    <b:if cond='data:post.allowComments'>
    <a class='comments-button' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:post.numComments/></a>
    </b:if>

  8. Insert as follows:

    <b:includable id='post' var='post'>
    <div class='post hentry uncustomized-post-template'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
    <h3 class='post-title entry-title'>
    <b:if cond='data:post.allowComments'>
    <a class='comments-button' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:post.numComments/></a>
    </b:if>

    <b:if cond='data:post.link'>
    <a expr:href='data:post.link'><data:post.title/></a>

  9. Save template and then view blog to admire your new comment counter badge.


Tips and Troubleshooting
  1. If you prefer you can replace the button image I have provided with your own image. You can find other buttons easily enough by doing a Google search with a term like "speech button icons".

    Upload your button to a hosting service such as Photobucket and change the URL address of the image in the CSS styling section. The following example will render a smaller blue button. Note I have reduced the font size to accommodate the change. You may need to play around with the settings to get the font sizing right for your image.

    .comments-button {
    width : 48px;
    height : 48px;
    background : url(http://4.bp.blogspot.com/_vLeiVavkV_M/TRqepCLnncI/AAAAAAAADw8/Wrtzy05EJ7o/s200/comment-counter-bubble-2.png) no-repeat;
    float : right;
    font-size : 14px;
    margin-top : -15px;
    margin-right : 2px;
    text-align : center;
    padding-top:10px;
    }


  2. If you want your comment counter to be left aligned instead of right you will need to change the CSS styling from float:right; to float:left;

In today's Blogger tutorial I have covered how to add a comments counter to a Blogger blog (blogspot blog) that will appear to the right of your blog post title. A comments counter is a way to encourage visitors to comment and is a way of showing off the credibility of your blog posts. Good luck! Any comments about installing this blogger hack are most welcome.


Related Articles
List of Blog Know How Tutorials for Blogger Blogs
Tips to Add Digg Button to Blogger Blogspot
Add Twitter Followers Counter to Blogger
Add Twitter Badge or Button to Blogger
Add a Social Bookmarking Button to Blogger
Add Social Bookmark Buttons to Blogger

Comments

Popular posts from this blog

How to Add a Subtitle to Blogger Posts

This Blogger tutorial shows you how to easily and quickly add a subtitle to your Blogger posts (Blogspot posts) so that both search engines and readers will have more information about your post. I also discuss the benefits of adding subtitles to Blogger articles. This is an easy tweak to your Blogger blog that anyone can carry out in a couple of minutes. Benefits of Using Subtitles in Posts Adding a subtitle which appears below the title of your post can be both eye catching and informative. For instance a titling schema for this post could be: Title: Add a Subtitle to a Blogger Blog Subtitle: Make Your Posts More Search Engine Friendly and User Friendly If you craft your titles and subtitles carefully you will encourage more targeted readers of your blog as they will be able to see at a glance what your post is about rather than reading the whole article. Your traffic therefore might be slightly less but they will be far more targeted to the content of your site resulting in a

Cara Membuat Blog Sendiri

Cara Membuat Blog Sendiri Menjadi seorang blogger artinya menjadi penulis dan webmaster. Sebagaimana sebagai penulis buku, artikel koran atau hanya sebuah blog inilah Tips Trik Membuat blog dan menjaga semangat ngeblog agar kontinyu. Karena ternyata, ngeblog itu meletihkan dan melelahkan. Perlu enerji cukup, terutama asupan ke otak dan mata. Karena pekerjaan otak ternyata lebih berat dan lebih melelahkan daripada fisik. 1. Bawa Buku Catatan kecil atau Notes kemana pergi. Ketika muncul ide atau ilham jangan tunda, langsung tulis. Kalau ditunda akan lupa. Bukan mudah mau memanggil ingatan yang sudah lewat/lupa. 2. Sewaktu mendapat ide atau ilham tulis Ide Utamanya . Kemudian jabarkan menjadi poin-poin kecil. 3. Ketika online, atau siap menulis artikel, susun sebaik mungkin. Suatu saat kita boleh saja membuat update/perubahan. Namun jangan mengira kita bisa selalu membuat perubahan. Jadi, buatlah artikel sebaik-baiknya sebelum dipublish atau diposting. 4. Buatlah arti

Panjang Maksimum Deskripsi Video Youtube dan Pesan Kesalahan

Ada banyak diskusi di sekitar tentang menambahkan Caption teks ke deskripsi video YouTube Anda. YouTube secara otomatis akan mengkonversi konten audio dari streaming video Anda ke teks biasa - sehingga dapat digunakan untuk teks tertutup. Anda tentu saja harus cek dan edit ini sebagai hasil yang sedikit aneh dari waktu ke waktu! Anda kemudian dapat menambahkan teks keterangan ini untuk deskripsi video YouTube Anda. Sehingga akan diindeks juga oleh mesin pencari. Masalahnya adalah bahwa itu sangat mudah untuk menemukan kesalahan pada YouTube di mana dikatakan bahwa pengaturan video Anda tidak bisa diselamatkan alasan adalah bahwa baik deskripsi terlalu panjang atau berisi karakter ILLEGAL.  Ini adalah pesan kesalahan yang sangat tidak membantu. Oke. YouTube Anda memberitahu bahwa deskripsi terlalu panjang? Atau apakah itu mengandung karakter ilegal? Atau keduanya? Setelah mengalami masalah ini beberapa kali, saya mengatur tentang bereksperimen dan melihat apa yang sejauh deskrip