• My list of categories is getting long and scrolling through them is a pain.

    Is there a way to make the Category box bigger, or collapse subcategories, or something to make finding the category that bit easier?

    I found the code below to change the height but it doesnt work.

    
    .wp-admin #category-all {
       min-height: 200px;
       max-height: 400px;
    }
    
    

    Thanks!

    • This topic was modified 4 years, 11 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    In the block editor it’s this rule:

    .editor-post-taxonomies__hierarchical-terms-list {
        max-height: 14em;
    }

    Any modified version should rightly be part of a custom admin style which is properly enqueued, but if that’s the limit of your custom styles you could output it within an inline <style> block from the “admin_head” action.

    The rule applies to any hierarchical list in the editor. If that’s undesirable, add [aria-label="Categories"] to the selector.

Viewing 1 replies (of 1 total)
  • The topic ‘Change height of select Category checkbox on page/post/product pages’ is closed to new replies.