Hide muted categories in category list

Discourse now shows muted categories in the category list. This improves discoverability, particularly on sites with many categories muted by default. If you prefer the old behaviour, this simple theme component will restore it:

22 Likes

Hi @david, do you know of any solutions that would allow hiding specific sub-categories from appearing on the /categories page, but still allowing topics to show up in latest?

I have several categories with a larger amount of sub-categories, and Iā€™d like to hide those since they take up a lot of visual space.

1 Like

Yes you can do something using css there you should have elements to target

3 Likes

I did find this: .category-list .subcategories { which I can hide, but it applies to all categories on the home page. Is there a way to declare only specific categories and hide only those sub-categories within them?

You would target the href of the link. A bit hacky but it works.

2 Likes

Hi Sam,

This works to remove the subcategory name, but not other elements related to it. I found that for new topics, the ___ new indicator still appears like in the screenshot below.

Screen Shot 2020-06-16 at 6.12.14 PM

Ah sorry, jumped the gun on this. It looks like the URL string /l/new is appended to each category URL, so those can be isolated and hidden by targeting hrefs as well.