# Alternatives to lock icon for categories

**URL:** <https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815>\
**Category:** UX\
**Created:** [2015年二月4日 19:45 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815 "2015-02-04T19:45:45Z")\
**Posts on this page:** 8\
**Page:** 4

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2015年二月7日 12:19 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/61 "2015-02-07T12:19:46Z")

</div>

> [@chapel](#):
>
> I would use custom icons, and in fact had done so but had to override the template and it wasn’t very clean. Ended up removing it at the time because there were multiple areas where category templates weren’t the same.

That should probably be its own discussion. As I don’t get the feeling that @sam’s topic was about custom icons per category, but rather, that he doesn’t care for the default lock on categories that are restricted. Two different problems here as yours would expand to categories that do not have restrictions.

I simply wanted to point out that @sam’s issue is easy to overcome.

---

<div class="post-metadata">

**Author:** ![courtney](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@courtney](https://meta.discourse.org/u/courtney)\
**Post date:** [2015年二月16日 19:00 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/62 "2015-02-16T19:00:39Z")

</div>

@jvzr How did you go about hiding the icon? I’d like to do the same thing on our forum, same principle that folks don’t need to be reminded if they have access to additional categories.

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2015年二月16日 19:01 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/63 "2015-02-16T19:01:47Z")

</div>

```plaintext
.badge-category i.fa.fa-lock:before { content: ""; } /* remove the existing icon */

```

---

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [2016年三月31日 22:24 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/64 "2016-03-31T22:24:51Z")

</div>

An eye or slashed eye would be a good fit. (Doesn’t matter if it has been used for unlisted topics - it says the same thing, this is hidden/restricted).

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2016年四月1日 00:23 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/65 "2016-04-01T00:23:54Z")

</div>

As discussed earlier in this topic, it is a simple CSS fix to change the icon to whatever Font Awesome icon you prefer. Or did you try that unsuccessfully?

> [@Alternatives to lock icon for categories](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/51):
>
> You really need a config that does the following for you? .badge-category i.fa.fa-lock:before { content: "\f084"; } I mean, really. It is a one line customization.

except if you want the slashed eye use “f070”  
[http://fortawesome.github.io/Font-Awesome/icon/eye-slash/](http://fortawesome.github.io/Font-Awesome/icon/eye-slash/)

---

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [2016年四月2日 12:49 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/66 "2016-04-02T12:49:02Z")

</div>

Sorry, I did not read the whole thread or even look at the CSS 😊 (still think it needs to be fixed in the core product mind).

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年五月18日 11:03 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/67 "2018-05-18T11:03:00Z")

</div>

Changing an icon globally is very simple using APIs

> [@Change icons globally](https://meta.discourse.org/t/change-icons-globally-using-the-apis/87751):
>
> This is an easy way to change a Discourse icon globally. Right click on the icon you want to change and select “Inspect element” or “Inspect” (depends on the browser) Find the icon name Search a new icon here [Find Icons with the Perfect Look & Feel | Font Awesome](https://fontawesome.com/icons?d=gallery), e.g. [external-link-alt](https://fontawesome.com/icons/external-link-alt?style=solid) Customize and add the code in your admin \> customize \> themes \> edit code -\> JS tab // {theme}/javascripts/discourse/api-initializers/init-theme.gjs import { apiInitializer } from "disco…

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年五月18日 11:03 UTC](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815/68 "2018-05-18T11:03:05Z")

</div>



[上一頁](https://meta.discourse.org/t/alternatives-to-lock-icon-for-categories/24815.md?page=3)
