How to Customize the Wordpress Tag Cloud
If you’re like me you might also want to change the default settings that the Wordpress Tag Cloud use. Normally this would be done in the sidebar.php that lives inside your theme folder, but in my case – I use the Widget Editor – I don’t have any control over the Tag Cloud. So I decided to hack the Wordpress core no matter what others are saying about that. Of course, I have to mention that changes getting reverted after you update.
For this you need to modify the wp_tag_cloud function in the category-template.php file. It’s remarkably easy to do. Here’s how.
- Open the file /wp-includes/category-template.php
- Search for the line that begins with
function wp_tag_cloud - Make changes in the array as follows:
- To specify the smallest font size, set the value after ’smallest’. The default is 8 points
- To specify the largest font size, set the value after ‘largest’. The default size is 22 points
- To specify the maximum number of tags included in the cloud, set the value after ‘number’. The default number of tags is 45
- Overwrite the existing file with the changed file
Easy, huh? This is considered as a hack. So don’t blame me if something happens to your Wordpress install or if suddenly everything blows up completely.



