# Is there any way to remove subcategories from the hamburger menu

**URL:** https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799
**Category:** UX
**Tags:** pr-welcome
**Created:** [22.Февраль.2017 17:25:21 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799 "2017-02-22T17:25:21Z")
**Posts on this page:** 15
**Page:** 2

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [04.Март.2017 01:58:01 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/23 "2017-03-04T01:58:01Z")

</div>

Are you on the absolute latest version of Discourse? There was a bug (since resolved) that caused the issue you described…

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [05.Март.2017 16:53:11 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/24 "2017-03-05T16:53:11Z")

</div>

Replying to myself here…

Since I first had a chance to look at this I’ve been busy with travel, and will continue to be travelling for the next 2 weeks, limiting my ability to look at this (I don’t have a dev instance on my travel PC). If someone else wants to take a stab at the PR, feel free. Otherwise, I’ll work on it in a few weeks.

---

<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: [13.Март.2017 12:35:52 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/25 "2017-03-13T12:35:52Z")

</div>

This is now done.  
[https://github.com/discourse/discourse/pull/4749](https://github.com/discourse/discourse/pull/4749)

---

<div class="post-metadata">

### Author: ![scistoryteller](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@scistoryteller](https://meta.discourse.org/u/scistoryteller)
#### Post date: [14.Март.2017 18:32:02 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/26 "2017-03-14T18:32:02Z")

</div>

Well I’m not sure if it was an update or not that resolved the issue, but it seems to have changed so it’s now working properly. Thank you!

---

<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: [14.Март.2017 21:42:22 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/27 "2017-03-14T21:42:22Z")

</div>

This is now merged. You can remove the subcategories without needing to turn on the sub-category listing by using

```plaintext
.category-links .category-link.subcategory {
  display: none;
}

```

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [22.Июнь.2017 13:05:43 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/28 "2017-06-22T13:05:43Z")

</div>

just thinking loud …

what is the reason that the appearance of the subcategory option in the category page is linked to their presence in the hamburger menu?

I can’t use the beautiful box-style for the subcategories and at the same time have subcategories in the menu! can I?

---

<div class="post-metadata">

### Author: ![Ronnie](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ronnie](https://meta.discourse.org/u/Ronnie)
#### Post date: [11.Октябрь.2017 19:24:22 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/29 "2017-10-11T19:24:22Z")

</div>

Where can i access sandbox settings or how can i remove subcategories from displaying it in the main menu?

---

<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: [11.Октябрь.2017 19:31:11 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/30 "2017-10-11T19:31:11Z")

</div>

Got a Screenshot of what you mean with Main Menu?

---

<div class="post-metadata">

### Author: ![Ronnie](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ronnie](https://meta.discourse.org/u/Ronnie)
#### Post date: [11.Октябрь.2017 20:16:29 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/31 "2017-10-11T20:16:29Z")

</div>

Which code do i need to edit to hide sub categories from hamburger menu?

---

<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: [12.Октябрь.2017 00:52:40 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/32 "2017-10-12T00:52:40Z")

</div>

Edit category settings and turn it off for that category.

---

<div class="post-metadata">

### Author: ![scombs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scombs/32/48616_2.png) [@scombs](https://meta.discourse.org/u/scombs)
#### Post date: [12.Октябрь.2017 01:45:51 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/33 "2017-10-12T01:45:51Z")

</div>

Try this CSS

```
.category-links .category-link.subcategory {
  display: none;
}

```

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [21.Октябрь.2017 14:57:51 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/34 "2017-10-21T14:57:51Z")

</div>

There is no way to just turn it off for the hamburger menu. If you turn off display on front page, it disappears in the parent categories also.

---

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [16.Июль.2018 07:11:22 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/35 "2018-07-16T07:11:22Z")

</div>

For some reason I cannot find this setting but I have seen the subcategories listed when clicking on the parent category (like [HERE](https://www.ketogenicforums.com/c/progress)) so it appears to be possible somehow. If anyone knows how to do this please let me know. Thank you.

> [Joshua Rosenfeld](https://meta.discourse.org/u/jomaxro)[jomaxro](https://meta.discourse.org/u/jomaxro)[team](https://meta.discourse.org/groups/team)
> 
> [Feb '17](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/3)
> 
> You’re looking for this setting: `Show subcategory list instead of topic list when entering a category.`

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [16.Июль.2018 07:26:44 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/36 "2018-07-16T07:26:44Z")

</div>

If I’m understanding correctly what you are trying to achieve, these should be the steps to follow:

1. Navigate to the parent category
2. Click on the ![44%20PM](https://global.discourse-cdn.com/meta/original/3X/7/7/777edee03a1c22c3b1f5da4b4195a3213169d925.png) button to open the category settings
3. Go to the **Settings** section of the window
4. Check the setting called `Show subcategory list above topics in this category`.
5. Select the style you want from the dropdown menu

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

Hopefully that helps!

---

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [16.Июль.2018 07:57:25 UTC](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799/37 "2018-07-16T07:57:25Z")

</div>

Doh! Not sure how I missed that. Thank you very much!  
-Scot

[Предыдущая страница](https://meta.discourse.org/t/is-there-any-way-to-remove-subcategories-from-the-hamburger-menu/57799.md?page=1)
