Tag Cloud Widget (4 posts)

  1. madalin19
    Posted 7 years ago #

    I have recently installed WordPress 2.3 and i have a problem with Tag Cloud Widget. When i put in the sidebar the most popular tag has a very big font, and i want to change that to make smaller and i don't know how i didn't found anything. Here is how it looks http://xs119.xs.to/xs119/07390/widget.PNG

  2. MichaelH
    Posted 7 years ago #

    The only way to do that would be to modify the wp-includes/widgets.php file.

    You'd need to change line 1092 to use the largest parameter. Currently it defaults to 22.

    See the Template Tag, wp_tag_cloud() for info.

    Make sure you make a copy of the file before you modify it.

  3. fattik
    Posted 7 years ago #

    Thanks for the pointer MichaelH :) My cloud looks better now thanks to your advice.

    One step further, where should I look into if I want a tag list, not a cloud?

  4. MichaelH
    Posted 7 years ago #

    You can use the Template Tag, the tags(), for posts when displaying The Loop.

    Also, get_the_tags() will return an array of the tags associated with a post. Returns false if no tags.

Topic Closed

This topic has been closed to new replies.

About this Topic