Setting WordPress Tag Font Sizes

After tinkering with wordpres on and off for a while, I finally had my own website. Today it’s finally fully usable, when I suddenly noticed the tag font was very blurry.

The answer I got from Baidu was:

WordPress’s default tag cloud has a minimum font size of 8pt and a maximum of 22pt, displays 45 tags, and sorts them in ascending order by tag name. But checking with Firefox showed that it’s done by modifying the style.css stylesheet — yet no matter how I looked, I couldn’t find it. What to do… helpless, I turned to Baidu. How to modify the WordPress tag cloud Open wp-includes/category-template.php, search for wp_tag_cloud, and you’ll find ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘number’ => 45,‘format’ => ‘flat’, ‘separator’ => “\n”, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, Specific parameter descriptions: smallest – defines the minimum font size for tags, default 8; largest – defines the maximum font size for tags, default 22; unit – sets the font size unit, such as “pt” or “px”, default “pt”; number – sets the number of tags in the cloud, default 45 tags; orderby – sets sorting by “name” or “count”, default “name”; (Note: orderby=count means sorting by how many times a tag is used) order – sets ascending or descending order via “DESC” or “ASC”, default “ASC” ascending. Just modify the specific parameters of the wp_tag_cloud function according to your own needs to customize the tag cloud, then upload the category-template.php file to your hosting space to replace the original file.