If you’ve been running WordPress for a long time, or if you have a complex site, you probably have lots of categories. However, lots of categories causes a usability annoyance when the categories box in the admin screen stays pretty small.
The solution? Make it bigger!
The following code can be added to the functions file of your theme and it will make the categories box taller.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make the categoires box bigger in the admin. | |
add_action('admin_head', 'admin_taller_categories_box'); | |
function admin_taller_categories_box() { | |
echo '<style> | |
.categorydiv div.tabs-panel { | |
max-height: 500px; | |
} | |
</style>'; | |
} |
You can change 500px to be anything you want. Make it bigger or smaller.
Of course, you could always clean up the categories so you have less. I should do that, but I’ll just make it taller for now. 😉