# フロントページで「すべてのカテゴリ」の選択バーを非表示にするにはどうすればよいですか？

**URL:** https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202
**Category:** Development
**Created:** [2023 年 8 月 15 日午前 7:36 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202 "2023-08-15T07:36:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ellery](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellery/32/315016_2.png) [@Ellery](https://meta.discourse.org/u/Ellery)
#### Post date: [2023 年 8 月 15 日午前 7:36 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202/1 "2023-08-15T07:36:42Z")

</div>

「タグ付けを有効にする」オプションを調整することで、以下に示す画像を非表示にできることは理解しています。

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/5/d/b5deac863eef238f9dbf2cdaa20eb2226327de42.png)

しかし、「すべてのカテゴリ」セクションを非表示にする方法も探しています。これを達成する方法はありますか？

---

<div class="post-metadata">

### Author: ![Ellery](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellery/32/315016_2.png) [@Ellery](https://meta.discourse.org/u/Ellery)
#### Post date: [2023 年 8 月 15 日午前 9:01 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202/2 "2023-08-15T09:01:27Z")

</div>

具体的には：

「タグ付けを有効にする」を無効にすると：  
 ![image](https://global.discourse-cdn.com/meta/original/4X/6/3/b/63b2bc1a9e8ab3e32b21f56db6b7d752552db73e.png)

フォーラムのすべてのトピックのすべてのタグが非表示になります。

フロントページで **これらの2つの選択バーを非表示にしたいだけ** で、 **副作用はありません** 。

これを達成する方法はありますか？

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2023 年 8 月 15 日午後 1:30 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202/3 "2023-08-15T13:30:19Z")

</div>

フロントページと言うのは、具体的に `/latest` のことでしょうか？それとも、カテゴリやタグが選択されていない場合の `/top` や `/new` などにも適用したいということでしょうか？

もしこれらのすべてのページに適用したい場合は、`admin/customize/themes` の `common` ファイルに以下のCSSを追加すると機能します。

```scss
.navigation-topics {
  .category-breadcrumb {
      display: none;
    }
}

```

もし `/` と `/latest` のみに適用したい場合は、より複雑になります。

---

<div class="post-metadata">

### Author: ![Ellery](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellery/32/315016_2.png) [@Ellery](https://meta.discourse.org/u/Ellery)
#### Post date: [2023 年 8 月 16 日午前 3:27 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202/4 "2023-08-16T03:27:47Z")

</div>

ご回答ありがとうございます！

このCSSの挿入は正しいでしょうか？コードが期待どおりに機能していないようです。☹

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/5/1/c51000ff397861ce8f40946afdf98009b293331a.png)

また、「フロントページ」についてですが、これは `/Categories` と `/Latest` の両方を含むすべてのページに適用したいと考えています。

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/9/3/b939833a1f19d63bb351c15ed4208d89a880d30b.png)

ご指導いただけると幸いです！

---

<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: [2023 年 8 月 16 日午前 6:32 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202/5 "2023-08-16T06:32:24Z")

</div>

こちらを試してください（.navigation-topics CSSなし）

```scss
.category-breadcrumb {
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023 年 9 月 15 日午前 6:32 UTC](https://meta.discourse.org/t/how-can-i-hide-the-all-categories-selection-bar-on-the-front-page/275202/6 "2023-09-15T06:32:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
