# How to remove the lock icon in private categories

**URL:** https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919
**Category:** Support
**Created:** [October 18, 2018, 8:49pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919 "2018-10-18T20:49:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [October 18, 2018, 8:49pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919/1 "2018-10-18T20:49:29Z")

</div>

> [@Change icons globally](https://meta.discourse.org/t/change-icons-globally/87751/1):
>
> `<script type="text/discourse-plugin" version="0.8"> api.replaceIcon('d-watching', 'eye'); </script>`

It is possible to remove any icon for that method? I want to remove lock icon near to private categories.

---

<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: [October 18, 2018, 10:37pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919/2 "2018-10-18T22:37:50Z")

</div>

Nope because the `lock` icon is used for other elements, eg. when you close a topic:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/f/6f691e1e8eed74522baa7edef25d4dc2f2eea8dc.png)

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;
}

```

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [October 19, 2018, 6:18pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919/3 "2018-10-19T18:18:44Z")

</div>

> [@dax](#):
>
> .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. 🙂

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [October 19, 2018, 9:33pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919/4 "2018-10-19T21:33:26Z")

</div>

> [@dax](#):
>
> .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; }

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/3/f38e75588439bf35ada58651d5155eed26f03fa8.png)

It seems on the box row.

I tried that but doesn’t work.

```
.header-list-area .category-box-inner .category-box-heading .d-icon-lock {
    display:none;
}

```

I think it will work. I will try that:

```
.category-boxes-with-topics h3 .d-icon-lock {
    display: none;
}

```

---

<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: [October 19, 2018, 10:30pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919/5 "2018-10-19T22:30:23Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 18, 2018, 10:30pm UTC](https://meta.discourse.org/t/how-to-remove-the-lock-icon-in-private-categories/99919/6 "2018-11-18T22:30:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
