# Removing Dawn search button on mobile

**URL:** <https://forum.ghost.org/t/removing-dawn-search-button-on-mobile/24817>\
**Category:** Themes\
**Created:** [August 10, 2021, 2:25pm UTC](https://forum.ghost.org/t/removing-dawn-search-button-on-mobile/24817 "2021-08-10T14:25:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidgane](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/davidgane/32/7647_2.png) [@davidgane](https://forum.ghost.org/u/davidgane)\
**Post date:** [August 10, 2021, 2:25pm UTC](https://forum.ghost.org/t/removing-dawn-search-button-on-mobile/24817/1 "2021-08-10T14:25:57Z")

</div>

Hello,

Recently I received help to remove the search button from the Dawn theme ([Turn off search in Dawn theme - #2 by bironthemes](https://forum.ghost.org/t/turn-off-search-in-dawn-theme/24549/2)), but I noticed yesterday that it didn’t remove it when viewed on a smaller mobile screen.

Does anyone have advice what to add into code injection to remove it?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![brightthemes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brightthemes/32/42205_2.png) [@brightthemes](https://forum.ghost.org/u/brightthemes)\
**Post date:** [August 10, 2021, 2:45pm UTC](https://forum.ghost.org/t/removing-dawn-search-button-on-mobile/24817/2 "2021-08-10T14:45:24Z")

</div>

I just checked, with the following lines you can hide the search for both mobile and desktop versions:

```auto
<style>
.site-header button[data-modal="search"] {
    display: none;
}
</style>

```

(you can replace the previous code with this one)

---

<div class="post-metadata">

**Author:** ![davidgane](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/davidgane/32/7647_2.png) [@davidgane](https://forum.ghost.org/u/davidgane)\
**Post date:** [August 10, 2021, 2:51pm UTC](https://forum.ghost.org/t/removing-dawn-search-button-on-mobile/24817/3 "2021-08-10T14:51:15Z")

</div>

Thank you once again!

---

<div class="post-metadata">

**Author:** ![brightthemes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brightthemes/32/42205_2.png) [@brightthemes](https://forum.ghost.org/u/brightthemes)\
**Post date:** [August 10, 2021, 3:06pm UTC](https://forum.ghost.org/t/removing-dawn-search-button-on-mobile/24817/4 "2021-08-10T15:06:20Z")

</div>

You’re welcome!
