# Disabling search button?

**URL:** https://meta.discourse.org/t/disabling-search-button/123127
**Category:** Support
**Created:** [July 16, 2019, 7:47pm UTC](https://meta.discourse.org/t/disabling-search-button/123127 "2019-07-16T19:47:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![prjhelp](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@prjhelp](https://meta.discourse.org/u/prjhelp)
#### Post date: [July 16, 2019, 7:47pm UTC](https://meta.discourse.org/t/disabling-search-button/123127/1 "2019-07-16T19:47:11Z")

</div>

How would I go about completely removing the search button and not having the icon appear in the top bar.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [July 16, 2019, 7:49pm UTC](https://meta.discourse.org/t/disabling-search-button/123127/2 "2019-07-16T19:49:30Z")

</div>

You would have to remove the button using CSS as there isn’t a setting for it, but search is probably the most helpful component of a busy forum. Do you have a specific use case for disabling it?

---

<div class="post-metadata">

### Author: ![prjhelp](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@prjhelp](https://meta.discourse.org/u/prjhelp)
#### Post date: [July 16, 2019, 8:19pm UTC](https://meta.discourse.org/t/disabling-search-button/123127/3 "2019-07-16T20:19:34Z")

</div>

I’m trying to keep the number of users/threads limited, and I just don’t think the search bar is necessary.

Right now I’m trying to add `a[id="search-button"] { display:none; }` to the CSS of the light theme, but that doesn’t seem to work.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [July 16, 2019, 8:21pm UTC](https://meta.discourse.org/t/disabling-search-button/123127/4 "2019-07-16T20:21:31Z")

</div>

The rule needs to be more specific:

```plaintext
.d-header-icons .icon#search-button {
    display: none;
}

```

---

<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: [August 15, 2019, 8:21pm UTC](https://meta.discourse.org/t/disabling-search-button/123127/5 "2019-08-15T20:21:37Z")

</div>

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