Finally, My blog got rid of bx-error codes.. come back soon and read the tutorial...
TopBottom

How to remove label post count from label widget

Posted by Nitesh Kothari at 06 October 2008 | Post views: counter
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit


Label widget is one of the most used widget by readers or blog visitors. By default, Label Widget displays number of posts under a particular label. Many times, we have only one or two posts under a label, which may create a bad impression on your readers. Some of my blogger friends were asking me "how to remove label post count from label widget." So, i decided to write about it. This is probably the easiest blogger hack among other hacks.

How to remove label post count from label widget
Go to Layout->Edit Template HTML->check the expand widget template. Now search box to the Label Widget code or b:widget id='Label. The code looks like this:

<b:widget id='Label1' locked='false' title='Labels' 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'>
<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/>(<data:label.count/>)
</a>
</b:if>
<span dir='ltr'/>
</li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

(<data:label.count/>) tag is used to show post count of a label. Just remove this code if you do not wish to show label post count.

If you still can't get it, leave a message here with your problem. Did you like this hack?

Labels:

5 comments:

mikemathew said...

The label counts of the "Labels" widget is very annoying and everybody hates it. They are forced to use the "Links" widget, which takes a long time to add all the categories that you want to include. You could hold Ctrl+F to find for that phrase. Just delete the whole phrase after you found it. Click on the "Preview" button before you save the template, to make sure that it is alright. That's all!
____________________
mikemathew
viral marketing

Wolverine said...

@mikemathew:

why to take so much of pain when you can remove this count by deleting one line....

cutetiful said...

How Do I remove labels from showing up under my blog posts in the main column?

Post a Comment

Thank you for commenting at NiteshKothari.com. I follow "U comment I comment" movement. All the comment are dofollow. Please do not spam or leave meaningless or short comments. I expect you to leave me meaningful, relative and genuine comments. Thank you.

Blog Widget by LinkWithin