Hey Idk how to remove the search bar (I’m using custom theme) if anyone has an idea please help me
my store: technymx.com
A user asks how to remove the search bar from a custom Shopify theme.
Initial Solution:
base.css file in the Assets folderdisplay: none !important;Alternative Solution:
When the first code snippet doesn’t work, another user suggests targeting .header__search instead with the same display property in base.css.
Limitations:
One user notes these solutions may not apply to themes without a base.css file (specifically mentioning the “Fresh” theme), leaving that question unresolved.
Effectiveness:
Multiple users confirm both CSS solutions successfully removed the search bar, with verification spanning from the original post through 2025. The alternative .header__search code worked on the Dawn theme when the accepted answer failed.
Hey Idk how to remove the search bar (I’m using custom theme) if anyone has an idea please help me
my store: technymx.com
Hi @Eman_Adawi ,
You can simply remove the search icon to remove the search bar. Please follow the instructions below
#shopify-section-header > sticky-header > header > div > details-modal {
display: none !important;
}
it worked thanks ![]()
Hello,
I did the same but it did not work
Just paste the code below at the very bottom of the base.css file.
.header__search {
display: none !important;
}
this works thanks
Any solutions if there isn’t a “base.css”? I’m using the Theme called Fresh.
Thank you!
This worked on Dawn. Tried the “accepted answer” and didn’t work. Thanks bro
2025 and still working! Thanks