WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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
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


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.