[closed] How do I change the font size in my tag cloud? (2 posts)

  1. marcia1723
    Posted 3 years ago #

    I saw in another post that I was supposed to 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.
    and in another
    To change the font sizes, edit wp-includes/widgets.php using information found at:
    basically, you want this:
    But I can't even find where I am supposed to do these things. I looked in my Theme as well, but didn't see it there (though I was able to change the font size for the text in my general blog posts

    [closed as duplicate of: http://wordpress.org/support/topic/how-do-i-change-the-font-size-in-my-tag-cloud?replies=2 - continue with the one topic]

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    that I was supposed to edit: wp-includes/widgets.php

    never edit core files;
    (it would now be in: wp-includes/default-widgets.php)


    if you are referring to the default 'tag-cloud' widget -
    use a filter function added to functions.php of your theme;


    function set_tag_cloud_sizes($args) {
    $args = array('smallest'    => 8, 'largest'    => 22);
    return $args;

Topic Closed

This topic has been closed to new replies.

About this Topic