Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello, I'm trying to hide the header on the mobile view of our Shopify shop.
Hiding just the menu button in the header would work as well.
I've tried various code snippets I've found in this forum, but for some reason, none of them work. I am not coding savvy at all.
The shop is currently under construction here:
https://syntace-b2c.myshopify.com/
We are using the "Impact" theme and "Globo Mega Menu" app to build menus.
I'm using a different menu on mobile so I need to hide the header or just the menu button in the header on mobile. I can't do this within the editor, so I assume I'd need to do this with code.
Does anyone have an idea?
Solved! Go to the solution
This is an accepted solution.
Hey @ChrisXSyntace
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
button.tap-area.lg\:hidden[aria-controls="header-sidebar-menu"] {
display: none !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @ChrisXSyntace
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
button.tap-area.lg\:hidden[aria-controls="header-sidebar-menu"] {
display: none !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you!
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
<style>
@media screen and (max-width: 767px) {
button.tap-area.lg\:hidden[aria-controls="header-sidebar-menu"] {
display: none !important;
}
}
</style>
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the <style> tag before the body ----->
if this code work please do not forget to like and mark it solution
Thank you, this one worked too!
Hello @ChrisXSyntace
Go to online store ----> themes ----> actions ----> edit code ----> theme.css
add this code at the end of the file and save.
button.tap-area.lg\:hidden {
display: none !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025