# L'icône de catégorie est appliquée aux sous-catégories

**URL:** https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507
**Category:** Bug
**Created:** [Décembre 4, 2018, 10:55 UTC](https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507 "2018-12-04T22:55:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![izzy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/izzy/32/156031_2.png) [@izzy](https://meta.discourse.org/u/izzy)
#### Post date: [Décembre 4, 2018, 10:55 UTC](https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507/1 "2018-12-04T22:55:11Z")

</div>

I just switched over to the box layout for categories to see what it looked like, and I noticed that it glitched out the subcategory icons on all my categories.

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

None of those subcategories actually have icons set, and if I do set one, it seems to be overridden by the main category’s icon (smushed). I’d actually be fine with just removing subcategory icons entirely, if anyone knows of some clever CSS to do so!

---

<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: [Décembre 4, 2018, 11:44 UTC](https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507/2 "2018-12-04T23:44:45Z")

</div>

This definitely looks like a bug, I can reproduce it locally. @vinothkannans, is this possibly related to the category image updates you made recently?

@izzy In the meantime, if you add this CSS it will hide those subcategory images:

```plaintext
.category-box span.subcategory-image-placeholder {
    display: none !important;
}

```

---

<div class="post-metadata">

### Author: ![izzy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/izzy/32/156031_2.png) [@izzy](https://meta.discourse.org/u/izzy)
#### Post date: [Décembre 5, 2018, 12:39 UTC](https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507/4 "2018-12-05T00:39:51Z")

</div>

That works perfectly in the meantime! Thanks so much 🙂

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [Décembre 5, 2018, 5:12 UTC](https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507/5 "2018-12-05T05:12:17Z")

</div>

This is fixed as per commit

[https://github.com/discourse/discourse/commit/ec26a59eac5a296e5e5c34e5f88b3242aa21f115](https://github.com/discourse/discourse/commit/ec26a59eac5a296e5e5c34e5f88b3242aa21f115)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [Décembre 5, 2018, 12:30 UTC](https://meta.discourse.org/t/category-icon-being-applied-to-subcategories/103507/6 "2018-12-05T12:30:12Z")

</div>

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