How to change styling for the Tag Cloud
First of all, THANKS for this excellent theme. It is obvious that a tremendous amount of work went into its programming and its design. Flynn, you are to be heartily congratulated and I WILL be donating to support theme development when I can.
The only thing I wish to change so far, is the font size for the tag cloud. I'd like to reduce the font considerably so it isn't as dominating an item in my sidebar. Any advice on how to go about this would be much appreciated. TIA! |
The font sizes are hard coded into the widget and cannot be changed with CSS. I'd recommend that you install this small widget http://wordpress.org/extend/plugins/php-code-widget/
Then remove the default tag widget from the sidebar and put one instance of this new PHP Code Widget into a sidebar at Site Admin -> Appearance -> Widgets Into the text area of the widget put PHP Code:
Defaults: &smallest=8 (Font size for least used tags) &largest=22 (Font size for most used tags) &unit=pt (Font size unit: pt, px, em, %) &number=45 (Show the XX most used tags. 0 = show all) &format=flat (flat = side by side with one space between. list = <li>...</li> list) &orderby=name (name = alphabetically. count = by amount of posts tagged with this tag) &order=ASC (ASC, DESC, RAND) |
Thanks Flynn, that worked great.
I've never done any PHP coding so if I understand you correctly: should I want to make the tags in random order, would this be the correct code: <?php wp_tag_cloud('smallest=8&largest=14&order=RAND'); ?> |
Exactly, you can add or remove properties, and if you leave it empty like this
PHP Code:
|
Thanks again, your clear explanations are much appreciated!
|
Educating. But I would like to change the font from bold to normal. Where do I do that?
|
wp_tag_cloud() is a wordpress function. Here is a link to the function description: http://codex.wordpress.org/Template_Tags/wp_tag_cloud
|
Thanks for the tip! I achieved pleasant results by using
PHP Code:
PHP Code:
|
Quote:
WP 2.9 |
If you look thru the page I pointed to, you will find the source location
|
All times are GMT -6. The time now is 03:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.