WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Widget
[resolved] Cloud (4 posts)

  1. jawes
    Member
    Posted 3 years ago #

    Hello,

    How can I change the settings for the cloud. Specially the size of the font.

    http://wordpress.org/extend/plugins/taxonomy-widget/

  2. Michael Fields
    Themer
    Plugin Author

    Posted 3 years ago #

    You should be able to specify arguments to be passed to wp_tag_cloud() using the 'mfields_taxonomy_widget_args_cloud' filter. Something like this should do the trick. Add to your theme's functions.php:

    add_filter( 'mfields_taxonomy_widget_args_cloud', 'my_tag_cloud_args' );
    function my_tag_cloud_args( $args ) {
        $args['smallest'] = '1';
        $args['largest'] = '3';
        $args['unit'] = 'em';
        return $args;
    }
  3. jawes
    Member
    Posted 3 years ago #

    Hi Michael,

    This works very nice!
    The categories are now more readable ... thanks for your support!

  4. Michael Fields
    Themer
    Plugin Author

    Posted 3 years ago #

    No problem! You help me realize that putting those custom filters in the plugin was a really good idea :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic