In this support thread, tobiaseigen seeks a clear howto for replacing the lock icon used for restricted categories in Discourse, as users confuse it with the topic lock icon. cpradio provides a step-by-step guide: remove the default lock icon using CSS, then replace it with any Font Awesome icon by pasting its Unicode value (e.g., \f070 for eye-slash). tobiaseigen tests the change and reports it works everywhere except top-level categories on the categories page. cpradio clarifies that both CSS rules are needed — one for category badges and another for dropdowns — and confirms both must be applied together. tobiaseigen confirms success and thanks cpradio, who further explains the distinct purposes of each rule. Later, dax mentions a global icon-changing API, and JammyDodger notes that the Category Icons theme component now includes a built-in setting to simplify this process, making icon swapping even easier.
@cpradio could you or someone else provide a simple howto for changing the lock icon for categories? It’s now coming up in my community as something they find confusing because it is the same as the topic lock icon. I had some trouble finding the actual howto instructions in this thread.
I changed it to eyeslash on my site using @cpradio howto, but weirdly it did not change for top level categories on the categories page. Did change it everywhere else though. Any ideas?
Just so you know, it seems both rules are necessary, as the first rule covers the category drop downs on the Latest page and New Topic dialog, and the second rule covers all page write outs of the category badges.So you can’t just use one, you have to use them both.