There is a very easy way to stop the post count from displaying after each label on the Sidebar.
Before modifying HTML, read our blog How to Remove the Number of Posts Displayed by Each Label (Easy) for a super easy way of doing it that you might not remember.
However, if that method doesn't work for you, follow the instructions below.
Get into your blog and click Customize, click the Layout tab, and click Edit HTML. Click Download Full Template to save a fresh backup of your template. Then check the "Expand Widgets Template" box.
To quickly locate the code below, press Ctrl+F to open up the "find" box, copy and paste "data:label.count inside the box, and click Next.
If you find the code below, delete the line highlighted in red. If you do not find the code below, continue reading below.
<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, instead, you find the code listed below, delete the two lines highlighted in red. If you don't like to delete lines of widget code, you can comment them out by preceding the line with <!-- and ending the line with -->
<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>
</ul>
<b:else/>
<b:loop values='data:labels' var='label'>
<span expr:class='"label-size-" + data:label.cssSize'>
<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>
</span>
Your data:label code may not match the above as there are so many templates. Find the code that in the HTML that begins with data:label and do an Internet search on that line of code. You may find a site that can advise on your particular template code.
Showing posts with label Labels. Show all posts
Showing posts with label Labels. Show all posts
How to Remove Label From Displaying Below Posts
To remove the label from showing at the bottom of a post, you must edit the HTML. Go into Theme and click Edit HTML.
Don't forget to first Download Your Theme (Template). The current theme should always be downloaded and saved to hard disk in case the html gets messed up and you need to put back the code.
Once you are in the HTML, Blogger often hides some of the code and you must click the black arrow in between the row number at the far left and the actual code.
Early on, most templates or themes used the code below. Recently we had to hide the labels on one of the "Simple" themes and the code was still almost identical and it worked successfully.
So carefully following the directions below..
Click in the HTML, then press Ctrl+F on the keyboard to open the "Find" box in the upper right corner of the HTML window. Start typing the following: cond='data:post.labels inside the box and press Enter. Be careful. If Blogger can't find what you've typed and you press Enter, it may start adding blank lines in the HTML, which you don't want.
Hopefully you'll find the code below. When you do, delete ONLY the lines highlighted in red. If your code isn't exactly as below, but you feel it is close, delete the code but place it in a text (Notepad) file and save it in case you need to put it back.
<div class='post-footer-line post-footer-line-2'><span class='post-labels'>
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != "true"'>,</b:if>
</b:loop>
</b:if>
</span> </div>
Only delete the lines highlighted in red! And your labels will disappear. Cheers!
Don't forget to first Download Your Theme (Template). The current theme should always be downloaded and saved to hard disk in case the html gets messed up and you need to put back the code.
Once you are in the HTML, Blogger often hides some of the code and you must click the black arrow in between the row number at the far left and the actual code.
Early on, most templates or themes used the code below. Recently we had to hide the labels on one of the "Simple" themes and the code was still almost identical and it worked successfully.
So carefully following the directions below..
Click in the HTML, then press Ctrl+F on the keyboard to open the "Find" box in the upper right corner of the HTML window. Start typing the following: cond='data:post.labels inside the box and press Enter. Be careful. If Blogger can't find what you've typed and you press Enter, it may start adding blank lines in the HTML, which you don't want.
Hopefully you'll find the code below. When you do, delete ONLY the lines highlighted in red. If your code isn't exactly as below, but you feel it is close, delete the code but place it in a text (Notepad) file and save it in case you need to put it back.
<div class='post-footer-line post-footer-line-2'><span class='post-labels'>
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != "true"'>,</b:if>
</b:loop>
</b:if>
</span> </div>
Only delete the lines highlighted in red! And your labels will disappear. Cheers!
How to Change Labels on Multiple Posts the Easy Way
If you categorize your Blogger posts by label, the time will come when you will want to change the way a label is worded.
There is a fast way to change a label for all the posts involved without editing a single post! The method Blogger uses is to add the new label to all of the posts in one step, and then delete the old label in the second step.
- From your blog, click Customize and click the Posting tab.
- Click Edit Posts, and click the Label you want to change (left side of window). All of the posts with this label will display.
- Click All after Select: so that that each post has a checkmark in the box beside it.
- Click the drop-down arrow by "Label Actions" and either click on an existing label, or click "New Label," type the label name, and click OK. All of the posts now have the old label and the new label.
- Click the drop-down arrow again and click on the label you want removed. It will be listed under "Remove Label." All of the posts will disappear.
Your new label is now listed under Labels to the left. Click on the new label and all of the posts will display.
Subscribe to:
Posts (Atom)