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.

1
2
3
4
5
6
7
8
9
10
11
add_action('admin_head', 'categories_selection_jquery');
 
function categories_selection_jquery() {
	echo'
	<script type="text/javascript">
		jQuery(function($){
			$("#category-all.tabs-panel").height($("#categorychecklist").height());
		});
	</script>
	';
}

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

Thanks WPCanyon for the great idea!

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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">