Forums

Where do I change the size of fonts in tag cloud? (8 posts)

  1. zascar
    Member
    Posted 3 years ago #

    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

  2. write2brajesh
    Member
    Posted 3 years ago #

    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
    http://codex.wordpress.org/Template_Tags/wp_tag_cloud

  3. zascar
    Member
    Posted 3 years ago #

    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

  4. write2brajesh
    Member
    Posted 3 years ago #

    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

  5. dtwilliamson
    Member
    Posted 3 years ago #

    if not sidebar.php it might be widgets.php

  6. elekmathe
    Member
    Posted 3 years ago #

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

  7. elekmathe
    Member
    Posted 3 years ago #

    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.

  8. doggettfitness
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags