Size of Tags in Tag Cloud

Submitted by abhishek on Thu, 01/01/2009 - 04:25
Tag Cloud is one of the best widgets available in Wordpres at times we use it as a Widget at times its part of the theme but the size of tags goes on increasing as we add posts under the tag which at times doesnot look nice we can control the behaviour of this Tag Cloud, if you have installed this as a Widget then edit wp-includes/widget.php file find the following section in it function wp_widget_tag_cloud($args) { extract($args); $options = get_option('widget_tag_cloud'); $title = empty($options['title']) ? __('Tags') : apply_filters('widget_title', $options['title']); echo $before_widget; echo $before_title . $title . $after_title; //wp_tag_cloud(); wp_tag_cloud('smallest=8&largest=18'); (add the above line and define the size of smallest and largest tag) echo $after_widget; } the line shown controls the behaviour of tag Cloud. If you are not using Tag Cloud as a Widget u will find the wp_tag_cloud() in sidebar.php file. [ad#460]