• I was trying to figure out how to change the font sizes in the tag cloud, found this post in the forum about changing widgets.php to change the number of tags in a cloud, and modified it to include font sizes. It lets you modify the numbers in the widget’s edit.

    I think ideally this would come from the style sheet, but I can’t see how. If the code can be useful, see:

    https://www.ads-software.com/support/topic/169866?replies=5

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve read this top through as well as a few others, but I can’t find the place in widgets.php where it lists

    wp_tag_cloud();

    so you can add the parameters you want.

    The only listing of

    wp_tag_cloud

    is in the following list:

    $_wp_deprecated_widgets_callbacks = array(
    ‘wp_widget_pages’,
    ‘wp_widget_pages_control’,
    ‘wp_widget_calendar’,
    ‘wp_widget_calendar_control’,
    ‘wp_widget_archives’,
    ‘wp_widget_archives_control’,
    ‘wp_widget_links’,
    ‘wp_widget_meta’,
    ‘wp_widget_meta_control’,
    ‘wp_widget_search’,
    ‘wp_widget_recent_entries’,
    ‘wp_widget_recent_entries_control’,
    ‘wp_widget_tag_cloud’,
    ‘wp_widget_tag_cloud_control’,
    ‘wp_widget_categories’,
    ‘wp_widget_categories_control’,
    ‘wp_widget_text’,
    ‘wp_widget_text_control’,
    ‘wp_widget_rss’,
    ‘wp_widget_rss_control’,
    ‘wp_widget_recent_comments’,
    ‘wp_widget_recent_comments_control’
    );

    Can anyone give me better instructions? I’ve also read the codex article https://codex.www.ads-software.com/Template_Tags/wp_tag_cloud#Parameters, but I do not understand WHERE to put the code.

    Many thanks in advance.

    Ok, I found that you have to make this change in the file category-template.php. Totally different from widgets.php.

    LizLieh

    Thanks for the info have been pulling my hair out trying to figure which file I needed to change.

    Again Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customize tag cloud’ is closed to new replies.