# How to Hide sub categories in hamburger menu

**URL:** https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835
**Category:** Support
**Created:** [March 10, 2017, 5:08pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835 "2017-03-10T17:08:39Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Vikas\_Dangi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikas_dangi/32/131628_2.png) [@Vikas\_Dangi](https://meta.discourse.org/u/Vikas_Dangi)
#### Post date: [March 10, 2017, 5:08pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/1 "2017-03-10T17:08:39Z")

</div>

How do I hide sub categories in the hamburger menu ?

I found the solution here

> [@Hide sub categories in hamburger menu](https://meta.discourse.org/t/hide-sub-categories-in-hamburger-menu/49325):
>
> Hey, How do you hide sub categories in the hamburger menu ?

but I can’t find the `show subcategory list` in site\_settings.

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [March 10, 2017, 5:20pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/2 "2017-03-10T17:20:03Z")

</div>

> [@Vikas\_Dangi](#):
>
> show subcategory list

It should be in your Site Settings under Basic Setup

 ![](https://global.discourse-cdn.com/meta/original/3X/a/f/af6851988e54226ef809b15196e49cc1ceabd663.png)

Which version are you on?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [March 10, 2017, 5:40pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/3 "2017-03-10T17:40:03Z")

</div>

It was moved to the Edit Category dialog. Visit the Category topics, click Edit Category, then under the Settings tab it is `Show subcategory list above topics in this category.`

---

<div class="post-metadata">

### Author: ![Vikas\_Dangi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikas_dangi/32/131628_2.png) [@Vikas\_Dangi](https://meta.discourse.org/u/Vikas_Dangi)
#### Post date: [March 10, 2017, 5:46pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/4 "2017-03-10T17:46:47Z")

</div>

my version is v1.8.0.beta7 +10 and it is not showing in my forum

 ![](https://global.discourse-cdn.com/meta/original/3X/9/c/9c7a7ac9807b79ded0119c6988a4c7363285f682.jpeg)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [March 10, 2017, 5:48pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/5 "2017-03-10T17:48:41Z")

</div>

Check the Category Settings

 ![](https://global.discourse-cdn.com/meta/original/3X/b/4/b45ef58cff0923acb016b02c5ee0c5575471cd2a.png)

---

<div class="post-metadata">

### Author: ![Vikas\_Dangi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikas_dangi/32/131628_2.png) [@Vikas\_Dangi](https://meta.discourse.org/u/Vikas_Dangi)
#### Post date: [March 10, 2017, 5:50pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/6 "2017-03-10T17:50:46Z")

</div>

OK its working. But I also don’t want to show subcategory list above topics in the category.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [March 10, 2017, 5:51pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/7 "2017-03-10T17:51:51Z")

</div>

Unfortunately, both settings did that, so there isn’t any other way to feasibly get what you want at this time.

There is a #pr-welcome to make it easier to hide sub-categories from the hamburger menu though

> [@Is there any way to remove subcategories from the hamburger menu](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/12):
>
> A pr that adds the .subcategory class to the enclosing LI is welcome. Then you can do it with CSS. A site setting is @codinghorror’s call

---

<div class="post-metadata">

### Author: ![Nelson](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Nelson](https://meta.discourse.org/u/Nelson)
#### Post date: [July 29, 2017, 9:24am UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/8 "2017-07-29T09:24:30Z")

</div>

Enabling “suppress this category from the homepage” doesn’t remove the subcategory from the hamburger menu anymore. I’m on v1.9.0.beta4 +322.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [July 29, 2017, 11:48am UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/9 "2017-07-29T11:48:36Z")

</div>

You can do it via CSS which is more consistent

> [@How to hide sub-categories on the mind menu](https://meta.discourse.org/t/how-to-hide-sub-categories-on-the-mind-menu/66687/2):
>
> Custom CSS: .menu-panel .category-links .subcategory { display: none; }

---

<div class="post-metadata">

### Author: ![Nelson](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Nelson](https://meta.discourse.org/u/Nelson)
#### Post date: [July 29, 2017, 5:29pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/10 "2017-07-29T17:29:03Z")

</div>

Not really useful for me as it will hide all subcategories.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [July 29, 2017, 6:01pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/11 "2017-07-29T18:01:16Z")

</div>

Then customize the CSS to be (to target the hosting category)

```plaintext
.menu-panel .category-links.category-hosting { display: none }

```

---

<div class="post-metadata">

### Author: ![Nelson](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Nelson](https://meta.discourse.org/u/Nelson)
#### Post date: [July 29, 2017, 9:01pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/12 "2017-07-29T21:01:13Z")

</div>

I’m posting because it should work by using the setting not adding another css hack.

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [May 24, 2018, 6:07pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/13 "2018-05-24T18:07:25Z")

</div>

Another way is:

```css
.menu-panel.drop-down .category-link.subcategory {
    display:none;
}

```

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [May 26, 2018, 2:32am UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/14 "2018-05-26T02:32:48Z")

</div>

I noticed this code does not work on mobiles, even though I have it in ‘common’ anyone know why?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [May 31, 2018, 7:41pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/15 "2018-05-31T19:41:32Z")

</div>

> [@Sami\_Syed](#):
>
> I noticed this code does not work on mobiles, even though I have it in ‘common’ anyone know why?

Already replied here, take a look:

[https://meta.discourse.org/t/after-update-removed-category-suppress-option-css-doesnt-hide-them-on-mobile/83716/5?u=dax](https://meta.discourse.org/t/after-update-removed-category-suppress-option-css-doesnt-hide-them-on-mobile/83716/5)

---

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [October 31, 2018, 1:44pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/16 "2018-10-31T13:44:02Z")

</div>

Hi,

Is this the code to remove the “Uncategorized” Category from the hamburger menu?

> .menu-panel.drop-down .category-Uncategorized {  
> display:none;  
> }

I am adding it to /admin/customize/themes/9/common/scss/edit, which is our site’s default theme.

It doesn’t seem to be working - help welcome! 🙂

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [October 31, 2018, 1:59pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/17 "2018-10-31T13:59:01Z")

</div>

CSS selectors are case-sensitive. The rest of CSS, not so much ([read more](https://www.w3.org/TR/CSS2/syndata.html#characters))

So instead of

```plaintext
.menu-panel.drop-down .category-Uncategorized {
  display: none;
}

```

try

```plaintext
.menu-panel.drop-down .category-uncategorized {
  display: none;
}

```

---

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [October 31, 2018, 3:52pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/19 "2018-10-31T15:52:37Z")

</div>

Hi @Johani, that worked perfectly. If anyone else is trying to figure out how to hide the uncategorized Category from the hamburger menu, they can try your solution with confidence. Thank you!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 11, 2019, 5:52pm UTC](https://meta.discourse.org/t/how-to-hide-sub-categories-in-hamburger-menu/58835/20 "2019-02-11T17:52:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
