• Hello,

    I am a css newbie so I hope someone can help me.

    In my tag cloud, as normal the tags change size depending on how popular the tag is.

    However, in my tag cloud, the more popular tags are HUGE – way bigger than the less popular ones. I want a smaller change in size, or none at all.

    Can someone please tell me where in the code would I find where I can change the size of the tag cloud?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Brajesh

    (@write2brajesh)

    hi
    you need to change the arguments in a function called wp_tag_cloud
    Look for this in you template directory(in sidebar.php if the tag cloud is in the sidebar)
    Have a look at the function in wordpress codex here
    https://codex.www.ads-software.com/Template_Tags/wp_tag_cloud

    Thread Starter zascar

    (@zascar)

    Thanks for that.

    The only thing I can find in my stylesheet is this:

    #tag_cloud a {
      display: inline;
      }
    
    .sidebarsB ul.children li {border-bottom:none;}
    .sidebarsB ul.children {margin-bottom:-5px;}

    should there be a php file for the tag cloud? I can’t find it…

    Cheers for your help

    Brajesh

    (@write2brajesh)

    hi,You are most welcome.
    Yes,the tag will be inside a php file,most probably in sidebar.php.
    Check the sidebar.php or other php files of your template to find the tag wp_tag_cloud.Change the appropriate arguements there as mentioned in the above link in my previous post.

    Let us hope it helps you.
    Brajesh

    if not sidebar.php it might be widgets.php

    I couldn’t find it in either file. Where is it?

    The file is category-template.php under wp-includes.
    * Display tag cloud. – below this section is the option to change the largest size from 22 to something smaller.

    Thank you, elekmathe! Absolutely brilliant. I have been seeking the answer to this for 2.5 hours and finally it’s sorted. I am most grateful to you for your post.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Where do I change the size of fonts in tag cloud?’ is closed to new replies.