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

Personally I really dislike how wordpress shows all the "popular terms" in different sizes on the taxonomy add/edit screen in the admin area.

Does anyone know of a way to either remove this entire area completely by adding code to your functions.php file


how to just change this specific area so that none of the popular terms show up with different font sizes/styles?

Thank you

share|improve this question
up vote 4 down vote accepted

Hi @NetConstructor:

Oh, I love it when you give me an easy one. Starts to make up for all those harder ones... (well, partly. ;-)

So what you want is to replace this:

WordPress Tag Cloud with mixed-sized fonts

With this:

WordPress Tag Cloud with consistently-sized fonts

How? Use the 'wp_tag_cloud' hook which you can put into your theme's functions.php file or in a .php file of a plugin you might be writing. For this one I tested the global variable $pagenow to make sure it was on the term edit page. In the hook just strip out the style attribute from each of the <a> elements:

function modify_taxonomy_tag_cloud($html,$args) {
  global $pagenow;
  if ('edit-tags.php'==$pagenow) // Only for the tag edit page
    $html = preg_replace("#style='[^']+'#Us",'',$html);
  return $html;
share|improve this answer

Just to offer up an alternative using a CSS override which will actually have the same effect as Mike's solution.

add_action( 'admin_print_styles-edit-tags.php', 'normalize_tag_cloud' );
function normalize_tag_cloud() {
    <style type="text/css">.tagcloud a { font-size:inherit!important }</style>

I don't think either way is better, simply wanted to share a way to approach the problem differently.. ;)

share|improve this answer
Good one! I tried CSS first but couldn't get it to work, doh! Guess that proves how bad I suck at CSS! I also just learned about the 'admin_print_styles-*' hook from your answer too. +1 – MikeSchinkel Jan 22 '11 at 21:53
I taught you something, lol... didn't see that coming.. (i'm jesting incase it's not obvious).. I'd have thought you'd know your CSS pretty well, it's relatively easy when compared with PHP(imho). Happy to have expanded your pool of WP knowledge..! :) – t31os Jan 23 '11 at 9:50

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.