# How to add customs icon with Category Icons Theme components now that we can't upload files into TC

**URL:** https://meta.discourse.org/t/how-to-add-customs-icon-with-category-icons-theme-components-now-that-we-cant-upload-files-into-tc/183853
**Category:** Support
**Created:** [March 20, 2021, 9:17am UTC](https://meta.discourse.org/t/how-to-add-customs-icon-with-category-icons-theme-components-now-that-we-cant-upload-files-into-tc/183853 "2021-03-20T09:17:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![oca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oca/32/156060_2.png) [@oca](https://meta.discourse.org/u/oca)
#### Post date: [March 20, 2021, 9:17am UTC](https://meta.discourse.org/t/how-to-add-customs-icon-with-category-icons-theme-components-now-that-we-cant-upload-files-into-tc/183853/1 "2021-03-20T09:17:12Z")

</div>

I’ve updated the (amazing, that should be in core) [theme component](https://meta.discourse.org/t/category-icons-component/104683) that add icon to categories, and as usual the file with all my custom SVG has been erased, but this time I could not re-upload it.

Now, the UI says :

> ### Fichiers supplémentaires
> 
> _Exportez le thème ou vérifiez le dépôt Git pour voir ces fichiers._
> 
> - discourse/connectors/category-title-before/category-icon-template.hbs
> - discourse/initializers/category-icons.js

Sorry that’s in French, but the point is, I can’t re upload the file anymore.

Do I have to fork the theme component for my own usage ? I do manage multiple forums, do I have to fork it once for each instance ? Is there an other way ?

If I do have to do that, could someone provide a step by step tutorial for «how to fork a TC and just tweak stuff» ? Because git and github are still some kind of dark magic to me (and maybe to others).

[I really miss](https://meta.discourse.org/t/what-is-the-new-best-way-to-tweak-distant-theme-component/180000) the time I could just tweak a TC directly in the interface.

---

<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: [March 20, 2021, 11:50am UTC](https://meta.discourse.org/t/how-to-add-customs-icon-with-category-icons-theme-components-now-that-we-cant-upload-files-into-tc/183853/2 "2021-03-20T11:50:15Z")

</div>

I understand your frustration, but I think the web interface at github may let you fork and edit more easily than you think, though pulling upstream changes may be a chore.

Depending on your changes, you may be able to create another theme component that adds them?

---

<div class="post-metadata">

### Author: ![oca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oca/32/156060_2.png) [@oca](https://meta.discourse.org/u/oca)
#### Post date: [March 21, 2021, 10:29am UTC](https://meta.discourse.org/t/how-to-add-customs-icon-with-category-icons-theme-components-now-that-we-cant-upload-files-into-tc/183853/3 "2021-03-21T10:29:33Z")

</div>

> [@pfaffman](#):
>
> Depending on your changes, you may be able to create another theme component that adds them?

Thanks a lot !  
I hadn’t realized yet that I could add the file `$icons-sprite: icons.svg` to any other selfmade component, and that would still work with the _category icons_ TC.

---

<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: [April 20, 2021, 10:30am UTC](https://meta.discourse.org/t/how-to-add-customs-icon-with-category-icons-theme-components-now-that-we-cant-upload-files-into-tc/183853/4 "2021-04-20T10:30:07Z")

</div>

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