# Hoe kan ik de subcategorieën verwijderen uit de categorieën met de weergave Uitgelichte onderwerpen?

**URL:** https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670
**Category:** Support
**Created:** [22 december 2022 om 14:38 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670 "2022-12-22T14:38:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jacob\_kahn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_kahn/32/244484_2.png) [@jacob\_kahn](https://meta.discourse.org/u/jacob_kahn)
#### Post date: [22 december 2022 om 14:38 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670/1 "2022-12-22T14:38:57Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/f/0/5/f05b17dedf0d5c93d0b47198dea86655452e858a.png)

I’d like to remove the sub-category from this view. Does anyone have any idea how to do that?

Jacob

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [22 december 2022 om 16:06 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670/2 "2022-12-22T16:06:29Z")

</div>

You can add this CSS to your theme:

```css
.subcategories {
    display: none;
}

```

From:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/e/d/fed245e8f56444798c5ebd2f59af6b804d1d4ba2.png)

To:

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

I’m not sure `.subcategories` is the best selector though. I don’t know if it’s used elsewhere on the forum. Then it may cause unintended effects.

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [22 december 2022 om 16:52 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670/3 "2022-12-22T16:52:33Z")

</div>

> [@Canapin](#):
>
> ```plaintext
> .subcategories {
> display: none;
> }
> 
> ```

> [@Canapin](#):
>
> I don’t know if it’s used elsewhere on the forum. Then it may cause unintended effects.

So you can use this instead :D.

```css
.categories-list .category-list.with-topics .subcategories {
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![jacob\_kahn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_kahn/32/244484_2.png) [@jacob\_kahn](https://meta.discourse.org/u/jacob_kahn)
#### Post date: [24 december 2022 om 18:49 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670/4 "2022-12-24T18:49:32Z")

</div>

thanks @Canapin and @Lhc_fl

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [24 december 2022 om 19:35 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670/5 "2022-12-24T19:35:29Z")

</div>

> [@Lhc\_fl](#):
>
> `subcategories `

Yeah, that would be safer.

* * *

edit: I took a look at Discourse’s code, `.subcategories` alone should be safe (I personally like to use not too much selector depth if I can avoid it), and you should also consider hiding `.subcategories-list` as well as it’s the subcategories parent container on the mobile view.

---

<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: [23 januari 2023 om 19:35 UTC](https://meta.discourse.org/t/how-can-i-remove-the-child-categories-from-the-categories-with-featured-topics-view/249670/6 "2023-01-23T19:35:40Z")

</div>

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