Whether we are adding tag to the site settings, or a blog that calls the tag aggregation related content in the side position becomes a collection. But in the user experience, depending on the template, the tags we display in the sidebar are sometimes not very good-looking. such as the size of the font, such as the number of calls more.
In the template file we are really difficult to modify this kind of parameters, we need to use the WordPress program core files. The workaround is as follows:
Locate the category-template.php file under the Wp-include folder;
Find the parameters after Wp_tag_cloud:
The code is as follows |
Copy Code |
' Smallest ' => 8, ' largest ' =>, ' unit ' => ' pt ', ' number ' => 45, ' Format ' => ' flat ', ' separator ' => ' n ', ' by ' => ' name ', ' Order ' => ' ASC ', |
The default is to call 45, the maximum font 22, the minimum 8, according to our needs to adjust.
All we need to do is modify the parameters and then replace the file in the space to complete it.