# トピックリストでトピックを非表示にせずにサブカテゴリを非表示にするには？

**URL:** <https://meta.discourse.org/t/hide-subcategories-without-hiding-their-topics-in-topic-list/195502>\
**Category:** Support\
**Created:** [2021 年 6 月 30 日午後 3:05 UTC](https://meta.discourse.org/t/hide-subcategories-without-hiding-their-topics-in-topic-list/195502 "2021-06-30T15:05:43Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)\
**Post date:** [2021 年 7 月 2 日午前 10:55 UTC](https://meta.discourse.org/t/hide-subcategories-without-hiding-their-topics-in-topic-list/195502/15 "2021-07-02T10:55:12Z")

</div>

@Johani このコードスニペットはどこに配置すればよいのでしょうか？  
テーマコンポーネントの `<head>` タグとヘッダー部分に配置してみました。そこにはすべての CSS を格納しています。しかし、サブカテゴリから最初の影響を受けたトピックがリストされるはずの地点で、トピック一覧が切り捨てられてしまいます。

---

_[View the full topic](https://meta.discourse.org/t/hide-subcategories-without-hiding-their-topics-in-topic-list/195502)._
