How to make the categories selection window taller with jQuery in WordPress admin

This solves something that has bothered me for sometime in WordPress admin interface. When a site has a lot of categories, the categories selection window is just not tall enough and we have to find the right category by scrolling the tiny window, but no more! With jQuery, the window expands dynamically. Amazing. Open you function.php and paste the following code.

add_action('admin_head', 'categories_selection_jquery');

function categories_selection_jquery() {
	echo'
	
		jQuery(function($){
			$("#category-all.tabs-panel").height($("#categorychecklist").height());
		});
	
	';
}

Thanks WPCanyon for the great idea!

Author: Takashi Irie

I'm a designer, father, husband, and house music lover living in the UK. I work at Automattic; the people who make WordPress.com, Jetpack, and a whole bunch of cool stuff.

5 thoughts on “How to make the categories selection window taller with jQuery in WordPress admin”

  1. finally, .i have a reason to use this πŸ™‚ ..no please work out how to get the admin category list to display in one long page rather than paginating πŸ˜‰

    Thanks,

  2. Is it possible to make the main categories collapseble?
    So when you click on the main category the subcategories will be visilble?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s