WordPress.org

Ready to get started?Download WordPress

Forums

customize tag cloud (4 posts)

  1. gtiphane
    Member
    Posted 5 years ago #

    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:

    http://wordpress.org/support/topic/169866?replies=5

  2. LizLeih
    Member
    Posted 4 years ago #

    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 http://codex.wordpress.org/Template_Tags/wp_tag_cloud#Parameters, but I do not understand WHERE to put the code.

    Many thanks in advance.

  3. LizLeih
    Member
    Posted 4 years ago #

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

  4. ken.dodds
    Member
    Posted 4 years ago #

    LizLieh

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

    Again Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic