Increasing categories selection height

This is a bit better hack because it will change the height dynamically to fit all the categories. Adding this PHP code to your functions.php of your wordpress theme will increase the height of your categories in the wordpress admin. This is great for people that have a lot of categories.

 

 

add_action('admin_head', 'categories_list_height_jquery');
function categories_list_height_jquery() {
echo'
<script type="text/javascript">
jQuery(function($){
$("#category-all.tabs-panel").height($("#categorychecklist").height());
});
</script>
';
}

Be Sociable, Share!

Leave a comment