Hi,
I want to remove the search icon on mobile on my header.
Here’s the link of my website : https://www.five-pocket.com/
Thanks.
A user seeks to hide the search icon from their mobile header on their Shopify store (five-pocket.com).
Solution Process:
.header__icon--search with display: none and visibility: hidden within a @media screen and (max-width: 749px) queryWorking Solution:
Add the following CSS to the bottom of base.css/style.css/theme.css file:
@media only screen and (max-width: 749px) {
.header__icon.header__icon--search {
display: none !important;
}
}
Key differences: Uses more specific selector (.header__icon.header__icon--search), includes !important flag, and proper media query syntax.
Status: Resolved - user confirmed the final solution worked.
Hi,
I want to remove the search icon on mobile on my header.
Here’s the link of my website : https://www.five-pocket.com/
Thanks.
@imazele - please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css
@media screen and (maxwidth:749px){
.header__icon--search {display: none; visibility: hidden;}
}
Did not work
@imazele - sorry, - was remaining between max-width , make it like add below one
@media screen and (max-width:749px){
.header__icon--search {display: none; visibility: hidden;}
}
Hi @imazele
Try this one.
@media only screen and (max-width:749px){
summary.header__icon.header__icon--search {
display: none !important;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you bro!