Tuesday, August 25, 2009

Blogger: How to reduce the number of labels in Blogger (by frequency)


Share

When moving from Wordpress to Blogger I found that blogger only has labels where wordpress has categories and tags.

Needleless to say,I found myself with tons of labels. I only wanted to display in my blog the labels that had allot of posts, In my case I wanted to display all labels that have 3 and above posts. This is what I did:

  1. Add the label widget
  2. Set the label widget to be sorted by frequency
  3. Change the code: go to “layout”
  4. Click on “Edit HTML” (I recommend backing up your template)
  5. Check the box “Expand Widget Templates”
  6. Find the label widget (use ctrl F and look for the word label1)
  7. Find the line: <b:loop values='data:labels' var='label'>
  8. Paste this line: <b:if cond='data:label.count &gt; 2'> right below the above line. (note that you can change the number 2 to any number you like)
  9. Now we need to close the b tag, so find the line </b:loop> and above it paste this line: </b:if>
  10. Click “save template”

0 comments:

Post a Comment

 

Blogroll

Site Info

Text