This is our Blogger FAQ and Help guide on the questions and issues that are commonly raised by Bloggers as well as the readers of our Blog at Tips for New Bloggers. Here, we shall elaborate on the finer details of the customization tips for your Blog template, give further examples, and answer specific queries. For detailed write-ups and discussions on the topics, please refer to the articles in our main Blog. Before changing any template, please remember to save a copy of the current template. After editing the template, preview it, and save it when you are satisfied with the change.
Blogger FAQ and Help

Header
  • Insert an image to the left of Blog Title and Description [read]
  • Add a Horizontal Navigation Bar in Header Image [read]
  • Unable to remove Header Image [read]

Blog Posts
  • Arrange, customize and shift the Blog Posts and Footer elements [read]
  • Insert a picture or image beside the Blog Post Title [read]
  • How to have standard or pre-formatted text in Blog Posts [read]
  • Add Highlighting to Text and Background Color in Text Box [read]
  • Change Blogger Post URL - SEO Tip [read]
  • Change the Post a Comment Link [read]
  • Add scrollbars to text within Blog Posts [read]

Sidebar
  • Add Background color and image to Sidebar Titles [read]
  • Have different Background colors for each widget [read]
  • Style and Position Sidebar Images [read]

Footer
  • How to align Blog Post Footer elements to the left [read]
  • Move Comments Label to below Post Title [read]

Links and Labels
  • How to add Hover, Mouseover and Rollover effects for links [read]
  • Remove automatic number count in Labels widget [read]
  • Remove link underlines in Blog Posts and/or sidebar [read]
  • Be notified by Blogger when there is a Backlink [read]
  • Change and Edit Labels in Multiple Posts [read]

General
  • How to change Background Colour of TicTac Template [read]
  • How to remove the Pencil or Screwdriver and Wrench icons [read]
  • How to add animated graphics in Blogger Post and Sidebar [read]
  • Add Text Box or HTML textarea code in Blogs [read]
  • Know the limits on our Blogger account [read]
  • How to take Screenshots or Screen captures [read]
  • How to change and transfer Blog ownership [read]
  • Change font size and font styles in template [read]
  • How to center align Page Elements [read]
  • How to insert a separator line between each comment [read]

Search Tricks for New Bloggers

banner
We have extended our month-long vacation by a couple of days. We shall be posting articles the moment we return. We noticed that Google had updated the Page Ranks. New bloggers who have been waiting anxiously for this can check their blogs' Page Ranks. We have the PR checker link in our SEO Tools - Search Engine Optimization article.

The blog we created recently in Aug 2007, Blogger FAQ and Help, has also got its first Page Rank, a PR4. All our blogs are now ranked:-

Tips for New Bloggers - PR6
Business Fables and Management Lessons - PR4
Famous Motivational and Inspirational Quotes - PR4
Blogger FAQ and Help - PR4

Thanks to everyone for the support!

Aug 16, 2007

Digg This Story

Remove Label Number Count

By default, the Labels Widget that can be added into your Blog through Template -> Page Element -> Add a Page Element will have an automatic count of the number of posts bearing that label tag.

Remove Label Number Count

If you don't like to see the count, or you want to change the brackets to square brackets or something else, you can edit the template code. Before any change, remember to back up your template. Go to Template -> Edit HTML and save a copy of your existing template by clicking the “Download Full Template” link. Next, check the “Expand Widgets Template” box.

Remove Label Number Count

We assume you already have a Labels widget in your Blog. Our task is to locate this widget in the template. If your Labels widget has a title, it is easy. Simply search (using Ctrl-F in most browsers) for the title. Every label widget is assigned an ID such as id='Label1' or id='Label2' and so on. If you don't have a title for your Labels widget, search for these IDs. Another method which we strongly recommend is for you to enter a temporary title into that Labels widget and search for that title. You can always remove the title after you have amended the template.

The part of the template that defines your Labels widget will look like this:-

<b:widget id='Label1' locked='false' title='' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<data:label.name/>
<b:else/>
<a expr:href='data:label.url'><data:label.name/></a>
</b:if>
(<data:label.count/>)
</li>
</b:loop>
</ul>


If you don't want the number count to appear after the Labels, delete the portion in red.

Should you want a square bracket, change the portion in red to:-

[<data:label.count/>]


If you want a hyphen followed by the number, change the red line to:-

-<data:label.count/>


Preview the Template. If this is what you want, save the Template and refresh the Blog page.

© Tricks for New Bloggers

Found this article useful? Mention us in your post, subscribe to our feed, link to us, or bookmark this site. Thanks for your support!AddThis Social Bookmark Button

10 comments:

Minna said...

Thanks for help with removing the label number count. The code lacks end tags for div, b:includable and b:widget. Otherwise, perfect. :)

bizwhiz said...

Nice of you to mention it Minna, although it is clear that the focus was on amending the portion marked in red. The rest of the code was merely to tell readers where to find it.

For the benefit of other readers, perhaps I should reiterate that the remaining code should not be modified except for the part shown in red.

power/speed said...

hi ho bizwhiz... need ur help :D
I added a new label to my posts "#Requested" but every time I want to add this label to some post i need to write it whole "#Requested" Why is that?
Cos for other labels I only need to type first 2-3 letters and it shows it ... help :D
p.s. Mby it has something to do cos i added that maxresults=999 code... but its working for all other labels except this one...

nodirecton said...

Hi Bizwiz,

I have a related question that hopefully you can answer...

I am looking for a way to use regular search label URL's to also display the label count.

I would like to add a list of certain (not all!) search labels in my sidebar. for example:
http://yourblogurl/search/label/Politics
Is there any way that I can have the number of posts on my blog that match the label "Politics" to show up in that line?

It would be great if you can answer his!!

Thanks in advance,

Jos

melissa said...

worked great! Thanks!

Leoy said...

Thanks for the tips, Pal! it's great..

Palimpseste said...

hank you for the incredible amount of know-how you generously share with the rest of the world. I have implemented several of your tips and tricks but find myself stumped by the label count removal as I can't get Blogger to save once I have removed the code. Has something that makes it impossible? I would greatly appreciate your feedback.

Top10 said...

This trick is good for those with low amount of posts in certain category. Doesn't look good if you have a count of just (1) or (2) at display.

kharis said...

It worked! Great...thanks

!i! KSAK !i! said...

excellent post dude!!! nice information. complete and clear.i just become a fan of your website. keep it up..........!