Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   How to change styling for the Tag Cloud (http://forum.bytesforall.com/showthread.php?t=586)

StudioGal Feb 28, 2009 09:28 AM

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!

Flynn Feb 28, 2009 12:31 PM

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:

<?php wp_tag_cloud('smallest=8&largest=14'); ?>

You can add more parameters by adding &property=value

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)

StudioGal Mar 1, 2009 08:03 AM

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'); ?>

Flynn Mar 1, 2009 08:46 AM

Exactly, you can add or remove properties, and if you leave it empty like this
PHP Code:

<?php wp_tag_cloud(); ?>

it will use all the default values

StudioGal Mar 1, 2009 10:46 AM

Thanks again, your clear explanations are much appreciated!

Sakshin Apr 24, 2010 06:26 PM

Educating. But I would like to change the font from bold to normal. Where do I do that?

juggledad Apr 25, 2010 03:58 PM

wp_tag_cloud() is a wordpress function. Here is a link to the function description: http://codex.wordpress.org/Template_Tags/wp_tag_cloud

ymf Apr 27, 2010 07:08 PM

Thanks for the tip! I achieved pleasant results by using
PHP Code:

<?php wp_tag_cloud('smallest=6&largest=16&number=45&format=list'); ?>

in conjunction with CSS insert
PHP Code:

div#execphp-3 ul li{ 
displayinline;
border-left2px solid #FFFFFE;


By the way, I would love to associate this CSS with the CSS class "wp-tag-cloud" rather than with the id "execphp-3" but couldn't figure it out.

contrast101 May 27, 2010 09:21 AM

Quote:

Originally Posted by juggledad (Post 30627)
wp_tag_cloud() is a wordpress function. Here is a link to the function description: http://codex.wordpress.org/Template_Tags/wp_tag_cloud

Sorry but what file gets edited? I'm not sure.:confused:

WP 2.9

juggledad May 28, 2010 06:08 AM

If you look thru the page I pointed to, you will find the source location


All times are GMT -6. The time now is 02:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.