# C'è un modo per rimuovere il badge di blocco per alcune categorie ma non per altre?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-remove-the-lock-badge-for-some-categories-but-not-for-others/92610>\
**Category:** UX\
**Created:** [18 Luglio 2018, 9:03am UTC](https://meta.discourse.org/t/is-there-a-way-to-remove-the-lock-badge-for-some-categories-but-not-for-others/92610 "2018-07-18T09:03:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [18 Luglio 2018, 10:49am UTC](https://meta.discourse.org/t/is-there-a-way-to-remove-the-lock-badge-for-some-categories-but-not-for-others/92610/2 "2018-07-18T10:49:43Z")

</div>

I think this should do it:

```scss
// Hide the lock icon for specific categories on topic lists and hamburger menu,
// and hide the lock icon on all dropdown search results
.search-menu .results .restricted,
[href="/c/MY-CATEGORY-SLUG1"],
[href="/c/MY-CATEGORY-SLUG2"],
[href="/c/MY-CATEGORY-SLUG3"] {
    .fa-lock {
        display: none;
    }
}

```

Just replace the `MY-CATEGORY-SLUG#` part with the slugs of the categories you want to have the lock icon hidden.

Unfortunately there isn’t enough to work with in the HTML to pick and choose which categories show the lock icon in the dropdown search results with CSS, so it’s all or nothing for that part. You will need to decide if you want to show or hide the lock for all restricted categories. If you want to show it, just remove this part: `.search-menu .results .restricted,`

Hopefully that gets you pretty close to what you are looking for!

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-remove-the-lock-badge-for-some-categories-but-not-for-others/92610)._
