Quick tip: How to make the ‘Categories’ box bigger when writing WordPress posts

Filed as Features, Guides on May 31, 2007 6:02 am

Repost This

I’ve written at a couple blogs, including my own and Blog Herald (here), and quite often, I see that there are quite a number of post categories to choose from in order to tag my posts appropriately.

Below, you can see a typical listing of available post categories that you can use on a WordPress blog. As you can see, though, there are so many categories that the box requires a scroll bar.

default.png

Wouldn’t it be nice to be able to see many more categories than what the default settings offer you?

Now, what we want to do is to expand this box so that we can fit more, or preferably, all, of the post categories so that we don’t have to scroll as much when we want to categorize our posts! (I would imagine that this box is, by far, the most commonly used one out of all of the other ones that are available on the ‘New Post’ page of the WordPress admin.)

In order to do this, all you have to do is modify the following file (the path is relative to your WordPress’ root path):

/wp-admin/wp-admin.css

In this file, look for the first occurrence of the following line:

#categorychecklist {

Below that, there should be

height: 12em;

Change the number ’12′ to something bigger, such as 25em instead, so that it now looks like:

height: 25em;

The final result should look like:

full.png

And voila, you’ve got every single post category at your disposal without requiring the use of a scroll bar! It’s a minor convenience, but one that can save you plenty of time in the long run.

Please note that you have to apply this change every time you upgrade your copy of WordPress, because it requires modifying a core file of WordPress.

Gary King is a professional freelance web developer, primarily using Ruby on Rails and PHP to create cool new websites. When he’s not trying to take over the world one blog at a time, you can find him mulling over his thoughts at King Gary.

Tags:

This post was written by

You can visit the for a short bio, more posts, and other information about the author.

Submissions & Subscriptions

Submit the post to Reddit, StumbleUpon, Digg or Del.icio.us.

Did you like it? Then subscribe to our RSS feed!



  1. By J. Angelo Racoma posted on May 31, 2007 at 11:58 am
    Want an avatar? Get a gravatar! • You can link to this comment

    This is a great tip, Gary! Thanks for sharing. Would you also, by any chance, know of a hack or plugin that lets users sort categories manually?

  2. By Gary King posted on May 31, 2007 at 12:59 pm
    Want an avatar? Get a gravatar! • You can link to this comment

    J. Angelo Racoma, there’s an old plugin here that might do what you want: http://pericat.ca/unlock/2005/02/20/explicit-category-sort-plugin/

    I’m not sure if this still works with WordPress 2.2, though.

  3. By J. Angelo Racoma posted on May 31, 2007 at 1:28 pm
    Want an avatar? Get a gravatar! • You can link to this comment

    Thanks, Gary. I’ll check it out. I’ve been meaning to install something that will help us have a cleaner categories interface here on the BH. We have a TON of categories and sorting them was a headache!

    Writers don’t have to wade through a ton of categories just to find what we’re looking for.

  4. By Andy posted on May 31, 2007 at 10:17 pm
    Want an avatar? Get a gravatar! • You can link to this comment

    Dear God. THANK YOU. I hadn’t mucked around in the CSS yet but it does screw up my groove when I have to scroll the options menu and then scroll the browser window, etc. Good stuff!

  5. Blog Herald: "Quick tip: How to make the ‘Categories’ box bigger when writing WordPress posts" | King GaryMay 31, 2007 at 11:18 pm
  6. By Robert posted on May 31, 2007 at 11:33 pm
    Want an avatar? Get a gravatar! • You can link to this comment

    I just deleted the height attribute so that the section auto-sizes :)

  7. Safely modify your WordPress admin’s CSS and make it futureproof : The Blog HeraldJune 21, 2007 at 6:43 am
  8. Safely modify your WordPress admin’s CSS and make it futureproof | King GaryJune 21, 2007 at 4:25 pm
  9. stefanpausch.com » Blog Archive » Wordpress - Kategoriebox beim “Neuen Post schreiben” größer machen?September 15, 2007 at 10:11 pm