Support » Fixing WordPress » howto edit tag cloud font sizes?

  • Hello,

    Does anyone know how I can edit the sizes of the fonts the tag cloud uses?

    For example:
    <a href='URL' class='tag-link-1' title='6 topics' rel="tag" style='font-size: 22pt;'>The Tag</a>

    The “22 pt” font breaks the sidebar in my design. I want to make it much smaller. How do I do that?

    I’m using the tag cloud widget btw.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Guess you could edit wp-includes/widgets.php and where it uses the Template Tag, wp_tag_cloud(), add the smallest, largest, and unit parameters to meet your needs.

    I tryed this and did not work… any suggestions

    echo $before_widget;
    echo $before_title . $title . $after_title;
    wp_tag_cloud(‘smallest 10px; largest 14px’);
    echo $after_widget;

    this worked for me


    Thanks guys – thanks to you I have fixed my rather tragic tag cloud – using the last method above.
    – Robin

    What file am I editing with this method? I am using the Tag Cloud widget I believe came with WP and I want to change the font sizes. Tag Cloud is not listed on my plugins page therefore there is not a php file listed under the plugin editor for me to change. Under Theme Editor I also do not see the file to edit. To make Tag Cloud work I have just added Tag Cloud onto my sidebar under the Design Widgets tab and it works but has not option on this page either. Thanks.

    where do i change the font size if i’m using the default WP Tag Cloud widget?

    wp 2.6.1



    To change the font sizes, edit wp-includes/widgets.php using information found at:


    basically, you want this:


    substituting the sizes you want.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘howto edit tag cloud font sizes?’ is closed to new replies.