WordPress sets the TAG cloud call font and quantity method

Source: Internet
Author: User
Tags php file

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.