It is possible to remove any icon for that method? I want to remove lock icon near to private categories.
AI-generated summary
The discussion revolves around removing the lock icon in private categories. bekircem initially asks if it’s possible to remove any icon using a specific method, citing a script provided by dax. dax explains that the lock icon is used for multiple elements and suggests using CSS to target specific elements. He provides a CSS code snippet that should work. bekircem confirms that the solution works, while bekircem encounters issues with the icon still appearing in certain areas and tries alternative CSS code. dax offers a revised CSS solution and invites bekircem to share a link to their site if the issue persists.
Nope because the lock icon is used for other elements, eg. when you close a topic:
In your case you need to target very specific elements, so you need to use the good old CSS instead of change the icon globally through the APIs.
Something like this should work:
.category .badge-category.clear-badge.restricted .d-icon-lock,
.badge-category.clear-badge.restricted .d-icon-lock,
.category-list .category-text-title .d-icon-lock {
display:none;
}
I was also thinking about the same problem. It works great, thank you for solution. ![]()
This should work:
.category-box-heading .d-icon-lock {
display: none;
}
depending on the settings you have enabled the classes change and therefore also the elements to be targeted will change.
If it does not work and you can not find a solution send me a link to your site (if it’s the one on your user card I can not open it, my ISP blocks it and I have to go and change the DNS on the router)

