Forums

Fontsize Tagcloud (5 posts)

  1. hvanoers
    Member
    Posted 4 years ago #

    In the new WordPress version 2.3 it's possible to use a tagcloud widget. I find it very useful however the fontsize of the large tags is to big for my wordpresstheme.

    How can I change this fontsize and were do I do that?

  2. Jeremy Clark
    Moderator
    Posted 4 years ago #

    In the widget you can't change the font size. If you feel comfortable enough with theme files have a look here.

  3. joshi
    Member
    Posted 4 years ago #

    I have follow code in the "widgets.php":

    wp_tag_cloud('smallest=10&largest=10&unit=pt&number=30&format=flat&orderby=count&order=DESC&exclude=&include=');

    But 5 Tags are bigger or bold. I dont know why.
    My site: http://www.pixilla.de

  4. Otto
    Tech Ninja
    Posted 4 years ago #

    WordPress doesn't allow a tag cloud with a spread of "0", which is what you're trying to do. So what you actually get is a spread of 1. Instead of the largest being 10, the largest is actually 11.

    Try making largest = 10.1 instead. Give it a little leeway.

  5. joshi
    Member
    Posted 4 years ago #

    Thank you .. it works with 10.1 :-)

Topic Closed

This topic has been closed to new replies.

About this Topic