# Hide SubCategories from Home/Category view

**URL:** https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047
**Category:** Support
**Created:** [January 15, 2018, 10:09am UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047 "2018-01-15T10:09:36Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![saggel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saggel/32/120386_2.png) [@saggel](https://meta.discourse.org/u/saggel)
#### Post date: [January 15, 2018, 10:09am UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/1 "2018-01-15T10:09:36Z")

</div>

Hello all,

Trying to hide the subcategories links from the home category view!

I’ve tried the solutions I’ve found on the forum but they don’t seem to work (using the default theme)

Could you please tell me how I can hide the subcategories links from the home category view?

Thank you!!!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 15, 2018, 12:29pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/2 "2018-01-15T12:29:47Z")

</div>

Have you tried the “hide category from home page” category setting?

---

<div class="post-metadata">

### Author: ![saggel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saggel/32/120386_2.png) [@saggel](https://meta.discourse.org/u/saggel)
#### Post date: [January 15, 2018, 1:00pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/3 "2018-01-15T13:00:10Z")

</div>

> [@pfaffman](#):
>
> Have you tried the “hide category from home page” category setting?

Thank you very much for your response! Yes, I’ve tried that too, doesn’t work for subcategories apparently!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 15, 2018, 1:37pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/4 "2018-01-15T13:37:21Z")

</div>

So you don’t want any links to the subcategory? I think you could do that with CSS.

---

<div class="post-metadata">

### Author: ![saggel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saggel/32/120386_2.png) [@saggel](https://meta.discourse.org/u/saggel)
#### Post date: [January 15, 2018, 1:38pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/5 "2018-01-15T13:38:45Z")

</div>

> [@pfaffman](#):
>
> So you don’t want any links to the subcategory? I think you could do that with CSS.

On the homepage, under each category, I don’t want to show the subcategories!  
I tried the CSS that I found here as solutions from old threads but they don’t work!

---

<div class="post-metadata">

### Author: ![saggel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saggel/32/120386_2.png) [@saggel](https://meta.discourse.org/u/saggel)
#### Post date: [January 15, 2018, 1:41pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/6 "2018-01-15T13:41:18Z")

</div>

So, for example, here:

 ![13](https://global.discourse-cdn.com/meta/original/3X/f/e/fecbd8a445171b0bd3d59e8efa47e69a56e8fba9.png)

I don’t want “theme, Votung, Broken-plugin, solved, extras, chat-integration” and “translations, SSO” to be shown under the categories - I still want to show the subcategories in boxes within the category though!

---

<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: [January 15, 2018, 1:50pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/7 "2018-01-15T13:50:21Z")

</div>

I vaguely recall a setting which allows you to disable this on a per category basis - but I could be wrong.

If it comes down to CSS,

I think this will hide subcategories from the category list but keep the box-style subcategories at the top in the category page.

```plaintext
.category-list .subcategories {
    display: none;
}

```

 ![subcategories hidden in category list](https://global.discourse-cdn.com/meta/original/3X/1/f/1f86d6164ba26e1cdfb6342d472ed66816e14d4c.PNG)

 ![subcategories visible inside category page.](https://global.discourse-cdn.com/meta/original/3X/8/6/86b96d58f294a2aebc00714c45090c5a51c9c3a6.PNG)

---

<div class="post-metadata">

### Author: ![saggel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saggel/32/120386_2.png) [@saggel](https://meta.discourse.org/u/saggel)
#### Post date: [January 15, 2018, 2:29pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/8 "2018-01-15T14:29:16Z")

</div>

It worked like a charm!!! Thank you very much!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 18, 2018, 11:00pm UTC](https://meta.discourse.org/t/hide-subcategories-from-home-category-view/78047/9 "2018-01-18T23:00:19Z")

</div>

This topic was automatically closed after 47 hours. New replies are no longer allowed.
