# Howto: Change lock icon for restricted categories

**URL:** https://meta.discourse.org/t/howto-change-lock-icon-for-restricted-categories/26217
**Category:** Support
**Created:** [11 Marzo 2015, 3:19pm UTC](https://meta.discourse.org/t/howto-change-lock-icon-for-restricted-categories/26217 "2015-03-11T15:19:22Z")
**Posts on this page:** 1
**Showing post:** 9

<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: [18 Maggio 2018, 10:57am UTC](https://meta.discourse.org/t/howto-change-lock-icon-for-restricted-categories/26217/9 "2018-05-18T10:57:25Z")

</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…

---

_[View the full topic](https://meta.discourse.org/t/howto-change-lock-icon-for-restricted-categories/26217)._
