# 如何从主页隐藏所有子类别？

**URL:** <https://meta.discourse.org/t/how-can-i-hide-all-subcategories-from-homepage/254527>\
**Category:** Support\
**Created:** [2023年二月8日 23:13 UTC](https://meta.discourse.org/t/how-can-i-hide-all-subcategories-from-homepage/254527 "2023-02-08T23:13:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [2023年二月10日 01:09 UTC](https://meta.discourse.org/t/how-can-i-hide-all-subcategories-from-homepage/254527/6 "2023-02-10T01:09:15Z")

</div>

你可能想看看这个主题组件。

> [@类别隐藏主题组件](https://meta.discourse.org/t/category-hider-theme-component/181299?u=heliosurge):
>
> 大家好，我创建了一个简单的主题组件。希望这对大家有所帮助！ 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)

我觉得它能满足你的需求。

还有一些站点设置会影响分类的显示方式，以及其他 #Customization > Theme component 比如 Modern Category Boxes。

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-hide-all-subcategories-from-homepage/254527)._
