# Retirer la sous-catégorie du panneau d'affichage

**URL:** https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933
**Category:** Support
**Created:** [Février 19, 2018, 11:39 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933 "2018-02-19T11:39:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)
#### Post date: [Février 19, 2018, 11:39 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/1 "2018-02-19T11:39:16Z")

</div>

Hi all,

I hope you are well. Could you let me know how to only display catégories and not the sub-catégorie. Here is below what i have which look messy in my opinion.

Many thanks for your help,

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

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [Février 19, 2018, 12:13 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/2 "2018-02-19T12:13:50Z")

</div>

I don’t think there’s a setting for that but I could be wrong.

In case there isn’t, you can use this to hide subcategories:

```plaintext
.menu-panel li.subcategory {
    display: none;
}

```

 ![Capture](https://global.discourse-cdn.com/meta/original/3X/5/8/58c4bf6ca7017fad2fb9911f59b5b41674f1e768.PNG)

---

<div class="post-metadata">

### Author: ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)
#### Post date: [Février 19, 2018, 12:29 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/3 "2018-02-19T12:29:55Z")

</div>

Yep great, it does the job perfectly.

Thanks a lot

---

<div class="post-metadata">

### Author: ![Duane](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/duane/32/220242_2.png) [@Duane](https://meta.discourse.org/u/Duane)
#### Post date: [Mai 12, 2021, 11:26 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/4 "2021-05-12T11:26:17Z")

</div>

S’il n’y a pas d’autre moyen de masquer les sous-catégories, j’aimerais ajouter cela à mon site. Deux questions… 1) Où exactement ce code doit-il être ajouté et 2) les sous-catégories s’affichent-elles toujours lorsque vous cliquez sur la catégorie principale ?

Merci d’avance !!

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [Mai 12, 2021, 11:34 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/5 "2021-05-12T11:34:01Z")

</div>

Je pense que ce serait là :  
`https://your.domain/admin/customize/themes/1/common/scss/edit`

(pour ma configuration, avec 1 pour le thème sombre, 2 pour le thème clair, etc., cela dépend de votre thème)

> [@Duane](#):
>
> les sous-catégories s’affichent-elles toujours lorsque vous cliquez sur la catégorie principale ?

oui, si vous parlez de la page de catégorie, c’est l’objectif de `.menu-panel`

---

<div class="post-metadata">

### Author: ![Duane](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/duane/32/220242_2.png) [@Duane](https://meta.discourse.org/u/Duane)
#### Post date: [Mai 12, 2021, 11:58 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/6 "2021-05-12T11:58:23Z")

</div>

@Benjamin_D Merci beaucoup!!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [Juin 8, 2024, 12:36 UTC](https://meta.discourse.org/t/take-off-the-sub-categorie-on-the-display-panel/80933/7 "2024-06-08T12:36:51Z")

</div>

Ce sujet a été automatiquement fermé après 2301 jours. Les nouvelles réponses ne sont plus autorisées.
