How to Display Post counter in Label as Title

Display-Number-of-Posts-as-Title
We use Labels or tags to categorize posts.Adding labels to posts is quite simple in blogger.When time is going,your blog might have many posts under each labels.You can show how many posts are including in each label by using Label post counter.But if you see it looks like label counter making your site ugly,then you have to remove the label post counter from your labels.This is mostly happening in templates that has cloud label style label gadget.In a past post i explained you how you can display label names as the title of label links.So in this tutorial, I use that method for showing the number of posts under each label on label gadget.

1: Sign in to your Blogger account.
2: Go to Dashboard >> Template and back up your current template.
3: Then Click on "Edit HTML" button and find below code on Template editor.

 <b:loop values='data:labels' var='label'>

You will see piece of code appearing followed by above code slightly similar to one below..

<b:loop values='data:labels' var='label'>
        <li>
          <b:if cond='data:blog.url == data:label.url'>
            <span expr:dir='data:blog.languageDirection'><data:label.name/></span>
          <b:else/>
            <a expr:dir='data:blog.languageDirection'  expr:href='data:label.url'><data:label.name/></a>
          </b:if>
          <b:if cond='data:showFreqNumbers'>
            <span dir='ltr'>(<data:label.count/>)</span>
          </b:if>
        </li>
      </b:loop>

4: Remove above code from your template and paste with below code.

<b:loop values='data:labels' var='label'>
        <li>
          <b:if cond='data:blog.url == data:label.url'>
            <span expr:dir='data:blog.languageDirection'><data:label.name/></span>
          <b:else/>
            <a expr:dir='data:blog.languageDirection' expr:title="data:label.count" expr:href='data:label.url' ><data:label.name/></a>
          </b:if>
        </li>
      </b:loop>

5: Now Save your Template.

That's alright.View your blog and hover on a label link of Label gadget.You will see the number of posts appearing nearby the label link.

Pengelola Blog : ABDUL WAHAB

Judul : How to Display Post counter in Label as Title
Ditulis oleh : Kejutan Internet pada hari
Rating Blog : 5 dari 5
Terima kasih Anda telah membaca artikel tentang How to Display Post counter in Label as Title
Anda boleh menyebar luaskannya atau mengcopy paste-nya jika artikel ini sangat bermanfaat bagi Blog dan teman-teman anda.
Namun jangan lupa harap memberikan link aktif dofollow yang mengarah ke URL ini ya
http://kejutaninternet.blogspot.com/2013/07/how-to-display-post-counter-in-label-as.html

Dan Terima kasih sekali lagi atas kunjungan Anda.

Kritik dan saran atau apapun bisa anda sampaikan melalui kotak komentar.
Dan mohon maaf jika komentar atau pertanyaan tidak bisa cepat saya respon,
karena Saya tidak bisa selalu online selama 24 Jam.


Mau Di Buatkan Blog Siap Pakai Seperti Ini ?.

Artikel Terkait

Previous
Next Post »