Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to disable Wordpress wp_tag_cloud() from outputting inline CSS?

share|improve this question

1 Answer 1

The only way to do this is to return the tag cloud as an array since every other tag parameter will still add inline font-sizing.

To return the cloud as an array you can use <?php $tag = wp_tag_cloud('format=array' );?>

or in a functions.php filter,

//tag cloud custom
add_filter('widget_tag_cloud_args','style_tags');
function style_tags($args) {
  $tag = wp_tag_cloud('format=array' );

 //var_dump to test output, as you can see you can style this any way you want 
 var_dump ($tag);
}
share|improve this answer
    
Thanks for feedback. I am trying to list custom taxonomy terms in the sidebar and wp_list_categories() does this since WP3.0 codex.wordpress.org/Template_Tags/wp_list_categories –  Ben Matewe Jul 13 '11 at 17:34
    
Please close the question then. –  Wyck Jul 13 '11 at 17:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.