Hi all, I’ve created a simple theme component. I hope this could be of use for some!
Overview
This is a theme component that allows you to hide specific categories from either the hamburger menu or category boxes.
Why would you need this component?
If your discourse website has a lot of categories and you would like to hide some from appearing in either the menu bar or on the main page, this component can be helpful.
Correct me if I’m wrong, but from what I understand is that when I mute a category it basically means no notifications? When I tried muting a category it still appears in the hamburger menu and category boxes.
This theme component is more of a stylistic change. It hides desired categories visually, but still keeps notifications and all other functionality for the category intact.
this component looks exactly like something we need in the future. Our use case is very specific in which we want to hide sub-categories from one specific parent category.
In combination with the code snippet from here this might achieve exactly what we are looking for:
Sounds very convenient! Thanks! I’ve added that now to this theme component, so you can now toggle the ability to hide subcategories in the hamburger menu and/or category-list context.
I’ve just pushed out a fix, please try installing again/updating the component.
I’ve just added this feature. You can now add the category name to the category_breadcrumb theme setting to hide certain categories from the category breadcrumb dropdown.
you can set the categories in the navigation menu with admin-settings - default_navigation_menu_categories - this setting allows you to select which categories will be displayed under the Navigation Menu’s Categories section by default. Users can override this and customize their own category menu section by clicking the pencil icon next to the Categories header just like you can, and this should generally be encouraged.