Hello,
I have tried multiple codes to remove the search icon in Dawn 7.0.1 but none seem to work?
How can i remove the search icon?
Any help is appreciated.
Thank you
Issue: User seeks to remove the search icon from Shopify’s Dawn theme version 7.0.1.
Initial Solutions Attempted:
a[href="#icon-search"] in base.css - did not workWorking Partial Solution:
<style> tag in theme.liquid before </body> with span[href="#icon-search"] { display: none !important; }Additional Recommendations:
.header__icons .header__icon--search { display: none !important; } in base.cssdetails.modal__header.search { display: none !important; } in base.cssCurrent Status: Discussion remains open with user seeking complete deactivation of search functionality, not just icon removal. Multiple CSS solutions provided but full resolution unclear.
Hello,
I have tried multiple codes to remove the search icon in Dawn 7.0.1 but none seem to work?
How can i remove the search icon?
Any help is appreciated.
Thank you
Hi @scotticus ,
This is PageFly - Advanced Page Builder.
You can try with this code:
Follow this:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css.
Step 3: paste below code in bottom of file → save.
[href=“#icon-search”] {
display: none;
}
Hope that my solution works for you.
Best regards,
PageFly
Hey @PageFly-Victor ,
Thanks for your quick reply!
I tried the code but the search icon is still there so it did not work.
Any other ways?
Thanks
Hi @scotticus ,
You can again try with this code:
Follow this:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: paste bellow code in tag → save.
span [href="#icon-search"] { display: none !important; }Hope that my solution works for you.
Best regards,
PageFly
Hey @PageFly-Victor ,
Thank you for the reply! Ive tried the code and it worked, the icon is no longer there, but if i hover i can still click the button to search, how can i deactivate the option completely?
Thanks again
Hello @scotticus ,
This can be fixed with the help of a custom code.
Add the below code in your base.css file and your problem will be fixed:
Find the code below
.header__icons .header__icon–search{
display: none !important;
}
Result:-

Hope this works, let us know if you need any further help with your Shopify store.
All the best,
CedCommerce
@scotticus You can try again with this code:
Follow this:
Step 1: Go to Online Store-> Theme-> Edit code.
Step 2: Search file base.css.
Step 3: Paste the below code at bottom of file → save.
details-modal.header__search {
display: none !important;
}
Hope that my solution works for you.
Best regards,
Victor | PageFly