# Hide Muted Categories

**URL:** https://meta.discourse.org/t/hide-muted-categories/140611
**Category:** Theme component
**Tags:** official, hide-muted-categories
**Created:** [February 4, 2020, 5:30pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611 "2020-02-04T17:30:21Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [February 4, 2020, 5:30pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/1 "2020-02-04T17:30:21Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Hide Muted Categories** hides muted categories from the category list. |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-hide-muted-categories](https://github.com/discourse/discourse-hide-muted-categories) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

> [@](#):
>
> :discourse2: As this is an #official theme component maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate theme component tag. Click on a link below to get one started. 👍
> 
> [❓&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&tags=hide-muted-categories "Ask for support on configuring and using Hide Muted Categories") [🐛&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=hide-muted-categories "A bug report means something is broken, preventing normal/typical use of the theme component") [👀&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=hide-muted-categories "Discussion about the user interface of Hide Muted Categories, and how features are presented (including language and UI elements)") [💡&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=hide-muted-categories "Discussion about how existing Hide Muted Categories features can be improved or enhanced, and how proposed new features could work")

### Features

Under normal circumstances, muted categories are shown in the category list to improve discoverability, particularly on sites with many categories muted by default. This theme component will provide the opposite behaviour and hide all muted categories from the category list.

  

> :discourse2: **Hosted by us?** Theme components are available to use on our Standard, Business, and Enterprise plans.

> Last edited by @JammyDodger 2024-06-12T22:56:11Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)
#### Post date: [April 24, 2020, 9:01pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/2 "2020-04-24T21:01:52Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 24, 2020, 10:50pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/3 "2020-04-24T22:50:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)
#### Post date: [April 27, 2020, 11:36pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/4 "2020-04-27T23:36:40Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 27, 2020, 11:41pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/5 "2020-04-27T23:41:29Z")

</div>

You would [target the href](https://css-tricks.com/almanac/selectors/a/attribute/) of the link. A bit hacky but it works.

---

<div class="post-metadata">

### Author: ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)
#### Post date: [June 16, 2020, 11:13pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/6 "2020-06-16T23:13:29Z")

</div>

> [@sam](#):
>
> You would [target the href](https://css-tricks.com/almanac/selectors/a/attribute/) of the link

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](https://global.discourse-cdn.com/meta/original/3X/1/5/15a04f89d0818d74a3af736817b63b6bcde2366b.jpeg)

---

<div class="post-metadata">

### Author: ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)
#### Post date: [June 16, 2020, 11:22pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/7 "2020-06-16T23:22:03Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Salvino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salvino/32/117451_2.png) [@Salvino](https://meta.discourse.org/u/Salvino)
#### Post date: [July 26, 2020, 7:56am UTC](https://meta.discourse.org/t/hide-muted-categories/140611/8 "2020-07-26T07:56:05Z")

</div>

Have you found a new solution to hide part of sub categories?

I have hundreds of sub-categories and only wanted the first 20 most active ones. Is there any way?

 ![Schermata 2020-07-26 alle 09.55.43](https://global.discourse-cdn.com/meta/original/3X/4/c/4cb647e6d196ea941fa6f742ec3a6b2895a6048c.jpeg)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 27, 2020, 3:27am UTC](https://meta.discourse.org/t/hide-muted-categories/140611/9 "2020-07-27T03:27:51Z")

</div>

Do you really need so many categories there? Tags would be more flexible. [It’s Time We Talked About Tags](https://blog.discourse.org/2017/10/its-time-we-talked-about-tags/)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 27, 2020, 9:29pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/10 "2020-07-27T21:29:12Z")

</div>

I have seen this exact usage previously, it is always super tricky to fit in geographic buckets of topics to our topic structure, every solution is a bit of a compromise, short of a geo aware plugin

All topics in America  
All topics in USA  
All topics in California  
All topics in Sonoma county  
All topics in Santa Rosa

---

<div class="post-metadata">

### Author: ![Salvino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salvino/32/117451_2.png) [@Salvino](https://meta.discourse.org/u/Salvino)
#### Post date: [July 29, 2020, 9:29am UTC](https://meta.discourse.org/t/hide-muted-categories/140611/11 "2020-07-29T09:29:58Z")

</div>

I’m looking for a solution with tags, because in the end I have to manage 8000 cities, and in any case there will also be 8000 natural tags. Do you think 20k tags are supported?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 29, 2020, 11:29am UTC](https://meta.discourse.org/t/hide-muted-categories/140611/12 "2020-07-29T11:29:44Z")

</div>

20k tags will work fine, we support very large numbers of tags

---

<div class="post-metadata">

### Author: ![Salvino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salvino/32/117451_2.png) [@Salvino](https://meta.discourse.org/u/Salvino)
#### Post date: [July 29, 2020, 12:26pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/13 "2020-07-29T12:26:50Z")

</div>

Tanks you @sam  
I will follow your advice, now I see how I can massively move posts into macro categories and then assign geographic tags

---

<div class="post-metadata">

### Author: ![Salvino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salvino/32/117451_2.png) [@Salvino](https://meta.discourse.org/u/Salvino)
#### Post date: [July 29, 2020, 12:47pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/14 "2020-07-29T12:47:12Z")

</div>

How can I clear categories in bulk via API?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [July 30, 2020, 2:22pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/15 "2020-07-30T14:22:04Z")

</div>

There isn’t an api endpoint to bulk clear out categories. You will have to delete all the topics first and then you should be able to delete the category. If you have console access there are some [rake commands](https://meta.discourse.org/t/administrative-bulk-operations/118349) that can help with this.

---

<div class="post-metadata">

### Author: ![JackALaing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jackalaing/32/189207_2.png) [@JackALaing](https://meta.discourse.org/u/JackALaing)
#### Post date: [February 15, 2021, 4:05pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/16 "2021-02-15T16:05:31Z")

</div>

I seem to have the opposite problem, even though I’m on 2.7.0.beta3. Muted categories aren’t appearing on the Categories page, but I would prefer to have this new default behavior.

---

<div class="post-metadata">

### Author: ![mangojumbo](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mangojumbo](https://meta.discourse.org/u/mangojumbo)
#### Post date: [November 10, 2021, 10:08am UTC](https://meta.discourse.org/t/hide-muted-categories/140611/17 "2021-11-10T10:08:34Z")

</div>

> [@JackALaing](#):
>
> I seem to have the opposite problem, even though I’m on 2.7.0.beta3. Muted categories aren’t appearing on the Categories page, but I would prefer to have this new default behavior.

With actual discourse versions muted categories don’t appear in the categories page anymore (they are grouped in a collapsible hidden group at the bottom of the category page).

I’m also looking for a way to show muted categories on their original place in the category page (the opposite of what this plugin was achieving).  
Were you able guys to find a solution?  
Thank you!

---

<div class="post-metadata">

### Author: ![RBoy](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@RBoy](https://meta.discourse.org/u/RBoy)
#### Post date: [October 24, 2023, 3:36pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/18 "2023-10-24T15:36:03Z")

</div>

With the current discourse implementation, muted categories are showing in a separate Heading/Grouping called `Muted categories`

As I understand this theme will completely hide all muted categories from the category list.

Is there a way to show the muted categories just like any other regular category (without grouping or hiding it) in the category list?

---

<div class="post-metadata">

### Author: ![digitaldominica](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@digitaldominica](https://meta.discourse.org/u/digitaldominica)
#### Post date: [December 26, 2023, 12:31pm UTC](https://meta.discourse.org/t/hide-muted-categories/140611/19 "2023-12-26T12:31:28Z")

</div>

Hi using discourse version 3.2.0.beta4-dev and this component does not hide the category from the categories page? What can I do to hide the category?

Checked the github code to see this is just css and applied it to the custom-category-boxes from the theme component minimal category boxes and problem resolved.
