Removing Dawn search button on mobile

Hello,

Recently I received help to remove the search button from the Dawn theme (Turn off search in Dawn theme - #2 by bironthemes), 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.

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

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

(you can replace the previous code with this one)

Thank you once again!

1 Like

You’re welcome!