Shopify themes, liquid, logos, and UX
I want to be able to see my full desktop menu at all times on desktop. I don't need it to collapse to a hamburger icon to save space. Keeping the hamburger menu is perfectly fine on tablet and mobile. Can anyone help point me in the right direction?
Here is a video of the menu collapsing on scroll that I am trying to stop: https://www.awesomescreenshot.com/video/34301257?key=888715b02f75d4b6bb6705ac5cc3a248
Here is a link to my store: https://phcyk1-jd.myshopify.com/ pw: wecanproveit
Lastly here is a screenshot of the menu and year make model search that I want to keep fixed and sticky up top on desktop. Thanks ya'll!
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(min-width:767px){
div#site-header-nav {
margin-top: 0 !important;
}
}
.site-header-menu-toggle--button {
display: none !important;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Hey @cortneyhowell7
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 (min-width: 768px) {
div#site-header-nav {
margin-top: 0 !important;
}
button.site-header-menu-toggle {
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
OMG thank you, I've been stuck for days. This solution is the closest and also appears to keep the hamburger menu on tablet/mobile which is great.
One thing- how do we get the header menu to stop "shrinking" on scroll. The hamburger menu doesn't appear, and the nav stays put which is all great. But the header is still shrinking to allow for an icon even though we are hiding it on desktop.
Ahh.. one more thing. It's a little buggy when I go to scroll and/or use the dropdown menus it seems that the whole navigation dissapears.
@media screen and (min-width: 1024px) {
.site-header-sticky--scrolled .site-header-main-content {
margin-left: 15px !important;
}
button.site-header-menu-toggle {
display: none !important;
}
.site-header-sticky--scrolled .site-header-main {
padding-top: 20px;
}
}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024