WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. marcia1723
    Member
    Posted 2 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:
    wp_tag_cloud
    basically, you want this:
    wp_tag_cloud('smallest=8&largest=22');
    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
    The Sweeper & Moderator
    Posted 2 years ago #

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

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

    c:

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

    example:

    add_filter('widget_tag_cloud_args','set_tag_cloud_sizes');
    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