Yes that should be doable using some CSS.
Hi. Can you add a category style setting to make it look like this?
Is this what meta is using on #howto?
I believe this component is for adding icons to category badges. That is, wherever you see the category appear in things like topic lists, title bar, etc. where it normally has a square with the category color and the category name.
Whereas the icons shown in the #howto category are simply using the built-in Category Logo Image setting found in the settings when editing a category.
Thanks for clarification, in the mean time I found out that what I was asking is core functionality indeed.
Would it be possible to make the
category lock icon also apply to the #sidebar?
I note that the code is here but based on this I suspect that a core change in the sidebar might be needed too:
It probably has been brought up before, but we can’t change a category color when the category style is
none anymore, this notice is rendered instead:
You can’t select colors because you have a category style of none.
Currently, we need to change the style to something else, change the color, and reset the style to
On another subject, I assume we still need core changes to be able to replace categories and tag icons in the sidebar to follow what’s set in these theme components, right?
Yep. Here’s the #bug topic about this, with some discussion:
Any plans to update this to have icons for categories in the sidebar?
great component, thank you so much for it. I implemented it and it works on any category for me - except one… I put in the correct slug, partial and exact. No icon. Hm.
This. Would be great.
For me it dont work at all.
Can you elaborate on the way in which it does not work? Nothing shows up?
I think there are some bugs with matching. I have a category
commblog, and I could not assign an icon to a
commblog-review category. I ended up working around it by calling it
community-blog-review instead. (The
partial config didn’t seem to help, but maybe I was doing that wrong.)
Honestly, ideally, instead of the kind of klunky table-based config, it’d be really nice if this could be set on the actual config page for each category. I understand that’s probably not possible (or at least, not easy!) with a theme component, though.
That is indeed not possible with a theme component. However, it’s in our plans to add icon support to tags and categories in core in the near future, quite possibly some time in 2023.
That’s excellent — I’m looking forward to it. Hopefully this will also resolve my long-standing sadness about category color configuration, too.
Nothing shows up I followed all instructions but nothing
Have you used theme components before? Do you have it configured for your current theme?
Yes like the Discord one that is the only one that work for me
I did some renaming here but I was not able to get an icon for this one category.
It is not really an important issue, but it is strange. And I ran out of ideas here.