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
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
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
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
dtwilliamson
Member
Posted 3 years ago #
if not sidebar.php it might be widgets.php
elekmathe
Member
Posted 3 years ago #
I couldn't find it in either file. Where is it?
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.
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.