# Can I limit the number of categories in the drop down menu?

**URL:** <https://meta.discourse.org/t/can-i-limit-the-number-of-categories-in-the-drop-down-menu/43861>\
**Category:** Self-hosting\
**Created:** [7 Mayo, 2016 21:55 UTC](https://meta.discourse.org/t/can-i-limit-the-number-of-categories-in-the-drop-down-menu/43861 "2016-05-07T21:55:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [3 Noviembre, 2017 22:47 UTC](https://meta.discourse.org/t/can-i-limit-the-number-of-categories-in-the-drop-down-menu/43861/10 "2017-11-03T22:47:20Z")

</div>

If you are only wanting to limit the categories in the hamburger menu, CSS can do it.

```plaintext
/* to hide them all */
.hamburger-panel ul.category-links { display: none; }

/* to hide only subcategories */
.hamburger-panel ul.category-links li.subcategory { display: none; }

```

You can also target specific categories (but you need to use Dev Tools, right click inspect element to see the category specific selector to use

```plaintext
.hamburger-panel ul.category-links li.category-specific-selector { display: none; }

```

---

_[View the full topic](https://meta.discourse.org/t/can-i-limit-the-number-of-categories-in-the-drop-down-menu/43861)._
