WordPress: How to Filter Tag Cloud

If you remove this limit, I’d think about marking the page with “noindex” if you’re worried about SEO.

Additionally, you can change the tag cloud limit to a number less than 45 too.

$args[number] = 10; // New limit for number of tags

The tag cloud widget isn’t used much now as it was about 5 years ago. There are warnings that it could cause a negative impact on SEO due to “keyword” stuffing.

 

Display Unlimited Tags

Why would I need unlimited tags? I’m sure you’re thinking that this sounds like a nightmare, and it probably would be unless used correctly. For this client, it didn’t make sense to create a visual “cloud” of words manually, or with categories. And, since we’re all used to effortlessly scrolling down a page, it felt like a good addition to the site.

 

Additionally, I used css to alter the font size and weight, since the tags would never be used more than once:

 

/*.tagcloud a:nth-child(odd) {
 font-size: 24px !important;
}
.tagcloud a:nth-child(even) {
 font-size: 14px !important;
}*/
.tagcloud a:nth-child(2n) { 
 font-size: 30px !important; 
}
.tagcloud a:nth-child(3n) { 
 font-size: 26px !important; 
 font-family: "Gotham Ultra";
}
.tagcloud a:nth-child(5n) { 
 font-size: 50px !important; 
 font-family: "Gotham Bold";
}
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *