Shopify themes, liquid, logos, and UX
I'm trying to find a code to remove the search bar from the header on my sense theme, so far I've used the below code for my web version but i can't find a version for it to remove it from the mobile version
.header__icon--search { display: none; }
url:
powerfoampro.com
Solved! Go to the solution
This is an accepted solution.
Im not sure why was that, would you mind to paste it on the theme.liquid open the file and find the tag </body> and paste the code below before this tag.
<style>
@media only screen and (max-width: 989px){
.header__icon--search { display: none !important; }
}
</style>
And Save.
Please dont forget to refresh always. Thanks!
Hi @bebop87
Would you mind to share your Store URL website? with password if its unpublish. Thanks!
powerfoampro.com
Thanks! Try this one.
@media only screen and (max-width: 989px){
.header__icon--search { display: none; }
}
I used your code. But i just check what screen size need to pull out the icon.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
I copied code to bottom of base.css but still no results ;(
Oh, Can you replace with this one.
@media only screen and (max-width: 989px){
.header__icon--search { display: none !important; }
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
I replaced old code with new solution code to no avail 😕 could there be something else I'm doing wrong?
This is an accepted solution.
Im not sure why was that, would you mind to paste it on the theme.liquid open the file and find the tag </body> and paste the code below before this tag.
<style>
@media only screen and (max-width: 989px){
.header__icon--search { display: none !important; }
}
</style>
And Save.
Please dont forget to refresh always. Thanks!
Beautiful, thank you
Seems like there is something wrong with your base.css.
Hi @bebop87
This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Base.css
@media only screen and (max-width: 767px){
.header__icon--search {
display: none !important;
}
}
Hope you find my answer helpful!
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hello. I am trying to do the same but it is not working for me either - can you help?
Hi @kljlaielk
Would you mind share your store URL? Or you can pm me. Thanks!
Thanks for the info, check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
li.drawer-menu__item.drawer-menu__search-parent {
display: none;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Excellent - thank you very much!!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024