# 如何从类别列表中隐藏子类别？

**URL:** <https://meta.discourse.org/t/how-do-i-suppress-a-subcategory-from-appearing-on-the-category-list/172178>\
**Category:** Development\
**Created:** [2020年十二月3日 22:43 UTC](https://meta.discourse.org/t/how-do-i-suppress-a-subcategory-from-appearing-on-the-category-list/172178 "2020-12-03T22:43:08Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Post date:** [2024年一月20日 23:11 UTC](https://meta.discourse.org/t/how-do-i-suppress-a-subcategory-from-appearing-on-the-category-list/172178/17 "2024-01-20T23:11:20Z")

</div>

试试这个 #Customization > Theme component

> [@类别隐藏主题组件](https://meta.discourse.org/t/category-hider-theme-component/181299):
>
> 大家好，我创建了一个简单的主题组件。希望这对大家有所帮助！ eyeglasses 概述 这是一个主题组件，允许您从汉堡菜单或分类框中隐藏特定的分类。 thinking 为什么需要这个组件？ 如果您的 Discourse 网站拥有大量分类，并且您希望隐藏部分分类，使其不显示在菜单栏或主页上，那么这个组件将非常有用。 framed_picture 截图 汉堡菜单预览：之前 –\u003e 之后 gear 设置菜单： 有关如何使用此主题组件的更多详细信息以及安装说明，请访问该组件的 [GitHub 仓库。](https://github.com/keegangeorge/discourse-hide-categories)eyeglasses预览 [https://theme-creator.discourse.org/theme/keegan/category-hider](https://theme-creator.discourse.org/theme/keegan/category-hider)octopus仓库 [在 GitHub 上查看](https://github.com/keegangeorge/discourse-hide-categories)question安装指南 [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookDiscourse 主题新手？ [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-suppress-a-subcategory-from-appearing-on-the-category-list/172178)._
