The discussion revolves around limiting the number of categories in the drop-down menu. TimMeade initially asked if it’s possible to only show first-tier categories in the hamburger menu, as having 200+ categories causes issues. codinghorror suggested turning off subcategory display in the site settings, but this setting might be misnamed and have other effects on the system.
cpradio provided an alternative solution using CSS to hide subcategories or specific categories in the hamburger menu. However, sebastianh pointed out that this method might be too blunt and also affects the “all categories” dropdown in the top menu.
Additionally, sebastianh and cpradio discovered a bug where the uncategorized category, which was disabled, still appears in the hamburger menu. sebastianh ultimately wants to limit the categories in the hamburger menu while keeping the “all categories” dropdown unaffected.
We are setting up a new site that will have a lot of 2nd tier categories. I would like to just have the first tier, or ‘liked’ categories show in the drop down hamburger menu. Is this possible? With 200+ categories in total, sometimes this menu does not come down at all.
To be fair, this setting might be a little misnamed since it does have some other effects on the system .. I guess we should call it the “I have way too many $%^#* categories” setting
all I find there is suppressing from home page. I want to not show categories in the hamburger menu. I think I misread the issue of Tim’s original post here though.
If you are only wanting to limit the categories in the hamburger menu, CSS can do it.
/* to hide them all */
.hamburger-panel ul.category-links { display: none; }
/* to hide only subcategories */
.hamburger-panel ul.category-links li.subcategory { display: none; }
You can also target specific categories (but you need to use Dev Tools, right click inspect element to see the category specific selector to use
thanks! I notice that I might have to actually selectively hide the, as all/nothing seems to be a bit too blunt in my case. i will figure it out.
I noticed something strange though: the uncategorized category, which I had disabled the night before, seems to be showing in the hamburger menu. What’s up with that (see other topic)
Found another problem. Hiding categories this way not only hides them from the hamburger, but also from the “all categories” dropdown in the top menu. Which turns the text “all categories” into a lie
Well I wasn’t all that serious, but I really just want to limit the amount of categories in the hamburger menu, the other one can show them all. Two different UI elements with different space constraints and requirements in my thinking…