Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I would like to remove the Shopify search Icon on the mobile Version of the Shopify Dawn theme. But only on mobile. On desktop it should be there. I tried some codes from the forum here, but they did not work. Grateful for any help! Thanks a lot!
Solved! Go to the solution
This is an accepted solution.
Hi @sim25ecom
Add below CSS code to base.css
@media only screen and (max-width: 650px) {
.header__search {
display: none;
}
}
This is an accepted solution.
Hi @sim25ecom
Check this one,.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
details-modal.header__search {
display: none !important;
}
}
Andf Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @sim25ecom
Can you provide the store URL of Shopify as this https://fitfeet.org/ store shows on WordPress
Sure. Here the Shopify URL and the password: https://kompressionssocken.myshopify.com/
Password: autwob
This is an accepted solution.
Hi @sim25ecom
Add below CSS code to base.css
@media only screen and (max-width: 650px) {
.header__search {
display: none;
}
}
Thanks for your help man! On the standard dawn theme it works well, but on my edited Dawn theme unfortunately not. I have added to custom codes for the header before (please take a look in the attachment). Is there a way to make the code work without removing the codes I have added before?
This is an accepted solution.
Hi @sim25ecom
Check this one,.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
details-modal.header__search {
display: none !important;
}
}
Andf Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thanks for your help man! On the standard dawn theme it works well, but on my edited Dawn theme unfortunately not. I have added to custom codes for the header before (please take a look in the attachment). Is there a way to make the code work without removing the codes I have added before?
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025