In a UX-focused discussion titled ‘Unable to alter the lock icon in category boxes,’ nathank reports that while using the Category Icons Component, the custom lock icon (unlock-alt) successfully replaces the default in subcategory titles but not in category-box-heading elements. Johani identifies that fixes are pending in two PRs — one in core Discourse and one in the component — and later confirms the component on nathank’s site is outdated, despite appearing correct. After verifying the component source and ensuring no duplicates, nathank still sees no change. Johani suggests reinstalling the component — which resolves the issue. nathank confirms the fix works and plans to replicate the reinstall on other sites, expressing gratitude for Johani’s persistent support. The root cause remains unclear, but reinstalling the component successfully applies the custom lock icon to category boxes.
I’ve used Category Icons to change the category locks icon to unlock-alt, which is great.
They are applied to all categories and subcategories appropriately except the category-box-heading. You’ll note that the subcategory titles have the replacement icon with no problem:
When inspecting the boxes, I note that the text for the category-box-heading is not wrapped in `category name here, and the icon assigned to it is the default one (not the one it has been changed to).
Apologies if this is actually related to the Theme Component, but I’m pretty sure it is something in core.
Thanks Joe - I’ve updated both discourse and the component, but the behaviour hasn’t changed. This example is for subcategories but it is the same for boxes on the /c page.
Not really sure at this point. Looking through the settings, I see you’re only using this for the lock icon, right? Can you try deleting the component and installing it again?