# 如何配置以禁用BOX CARD中的子类别显示

**URL:** <https://meta.discourse.org/t/how-to-configure-to-disable-display-of-the-sub-categories-in-the-box-card/330363>\
**Category:** Support\
**Created:** [2024年十月11日 03:40 UTC](https://meta.discourse.org/t/how-to-configure-to-disable-display-of-the-sub-categories-in-the-box-card/330363 "2024-10-11T03:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2024年十月11日 04:54 UTC](https://meta.discourse.org/t/how-to-configure-to-disable-display-of-the-sub-categories-in-the-box-card/330363/2 "2024-10-11T04:54:23Z")

</div>

在主题或主题组件的自定义 CSS/HTML 部分的 common/css 选项卡中，放入以下内容：

```scss
.category-boxes .subcategories {
    display: none;
}

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-configure-to-disable-display-of-the-sub-categories-in-the-box-card/330363)._
