Blogger Hack - Limit Label List
Today I brought one of my blogs (not this one) over to the new version of blogger and rather than have it list over 30 labels (AKA tags or categories) in my sidebar, I developed a hack to show only those with more than a given number of corresponding posts. It's quite simple and involves adding just two lines of code.
For those it may concern, here is what you need to do:
---
1. Make sure you're using the new version of blogger, have added the labels element to your template and have at least a few posts with labels.
2. Go into "Edit HTML" under the template tag (If you can't find the code you shouldn't be messing with it.)
3. Check "Expand Widget Templates".
4. Locate the "Labels widget" in that long list of badly laid out code - it starts a bit like this:

5. Surround the subsequent list tags with a conditional statement that filters out any categories with post totals that don't exceed a specified number, in this case 4.

6. Knock up a list of links for all your labels, bung it on the Internet somewhere and include a link to it just below your shortened label list called something intuitive like "See all" or "More"
See example.
---
Whilst this is no doubt boring for most of my readers, the Internet is all about sharing so hopefully on or two people will stumble across this and find it useful.
4 up, 0 down

4 Comments
very usefull ! thanks...
Really helpful, thank you
thanks! been trying to do this forever!
Add a comment
Recommended Book

Archive
2005
May (26)
June (10)
July (13)
August (17)
September (12)
October (8)
November (6)
December (16)
2006
January (11)
February (9)
March (6)
April (10)
May (11)
June (1)
July (7)
August (8)
September (3)
October (5)
November (1)
December (4)
2007
January (3)
February (2)
March (4)
April (5)
May (1)
June (7)
July (7)
August (8)
September (9)
October (1)
November (3)
December (6)
2008
January (2)
February (5)
March (5)
April (10)
May (8)
June (8)
July (12)
August (9)
September (8)
October (4)
November (1)
December (4)
2009
January (7)
February (5)
March (9)
April (5)
May (4)
June (5)
July (3)
August (1)
September (1)
October (1)
December (1)
2010
January (1)
February (12)
March (12)
April (4)
May (1)
June (3)
July (2)
August (7)
September (5)
October (4)
November (7)
December (5)
2011
January (6)
February (2)
March (2)
April (4)
May (2)
June (1)
July (2)
August (2)
September (2)
November (2)
Recent queries
Visitors searched the web for:
Location: Devon, UK
Recent Blog Comments
Recent Photos Comments
Tags
culture
art (13)
modern (2)
photography (9)
thought-provoking (1)
fashion (43)
alternative (4)
beauty (17)
hair (8)
clothing (10)
casual wear (5)
footwear (2)
hats (3)
undies (4)
home (4)
tattoos (2)
gay issues (8)
gender (3)
lifestyles (1)
entertainment
books (5)
celebrities (24)
actors (6)
darko (7)
musicians (4)
podcasters (2)
royals (2)
sports people (4)
footballers (1)
rowers (3)
undeserving (1)
writers (2)
film (18)
magazines (5)
music (6)
newspapers (7)
podcasts (1)
television (12)
theatre (9)
environment
animals & plants (28)
animals (27)
birds (7)
swans (4)
fish (4)
insects (3)
jellies (1)
pets (6)
reptiles (1)
plants (2)
disasters (2)
droughts (1)
floods (1)
green issues (6)
weather (4)
evil
baddies (33)
gooners (5)
hens and stags (1)
invertebrates (2)
lawyers (4)
mad brides (1)
moron week (4)
phone networks (1)
photo booths (1)
scams (3)
seagulls (1)
witches (8)
crime (8)
assault (1)
murder (4)
of fish (2)
terrorism (2)
theft (3)
of biscuits (1)
food & drink
drink (5)
alcohol (1)
ribena (3)
tea (1)
food (15)
chocolate (5)
games & toys
challenges (6)
competitions (29)
fantasy football 2010 (20)
games (7)
quizzes (9)
toys (9)
health & safety
health (23)
safety (8)
humour
accidental (14)
black (2)
geek (8)
lame (3)
parody (7)
satire (6)
language
cornish (2)
made up words (2)
naughty words (2)
poetry (4)
the brain (1)
translations (1)
letters
private (2)
public (2)
occasions
april fools day (0)
birthdays (6)
births (0)
christmas (5)
deaths (1)
new year (2)
valentine's day (2)
weddings (5)
royal (2)
places
cornwall (9)
devon (7)
dawlish (2)
exeter (4)
plymouth (1)
oxford (41)
catz (19)
catz mcr (12)
roxburgh (3)
religion & politics
philosophy (1)
politics (22)
causes (22)
anti-discrimination (2)
glamorising helmets (2)
glamorising ribena (3)
help the homeless (1)
organ donation (1)
sponsor a bipolar (1)
world peace (2)
religion (3)
science
bad science (10)
suspect products (6)
experiments (9)
psychology (4)
sex, nudity and romance
nudity (5)
romance (10)
dating (10)
networking (0)
sex (4)
spooky stuff
coincidences (5)
dreams (1)
ghosts (1)
goths (3)
mysteries (4)
psychic abilities (2)
superstitions (1)
zombies (1)
sport
cycling (7)
football (20)
frozen (2)
swimming (10)
yoga (2)
tales
happy endings (5)
sad sad tales of woe (17)
technology
gadgets (2)
phones (1)
pin sentry (1)
web 2.0 (61)
advertising (6)
blogging (31)
meet other bloggers (2)
memes (3)
this blog (17)
keywords (8)
new features (7)
tips (5)
censorship (1)
gimmicks (1)
knowledge (1)
photo resources (2)
privacy (1)
programming (3)
search engines (5)
social networking (14)
facebook (10)
twitter (1)
spam (2)
traffic monitoring (1)
transport
buses (4)
cars (2)
dr martens (1)
planes (1)
taxis (0)
trains (2)
writing projects
novels (1)
screenplays (3)
short stories (2)
stage plays (1)
web (3)
Message Sha
Links
- The Caption Game
- The Coffee House Players
- Indie Books Board
- Word Central
- Tabloid Front Page Generator
- It's Always Bloody Greensleeves
- My Flickr Albums
- Sponsor a Manic Depressive
- Kait at Catz
- Storyline Generator
- Poems by Tommy Herbert
- Herbert Fortnightly
- Pancadaonervoso
- ponderingmind.org
- Answer Me This Podcast
- Something to say
- Beetroot Soup
- My Google Profile








Thanks, I used it!