I’m using the Atelier theme and would like to change the horizontal desktop navigation menu into a drawer style (slide-out) menu, similar to the mobile hamburger menu.
It doesn’t seem like there’s a built-in option in the Customize panel to switch the desktop layout to a drawer format.
What would be the proper way to achieve this?
Ideally, I’d like:
• The desktop inline menu removed
• The hamburger icon visible on desktop
• The drawer menu to open and function normally on desktop like mobile
I’m comfortable editing theme files if necessary I just want to make sure I’m doing it in the cleanest and most stable way.
Has anyone implemented this successfully in Atelier?
If you want to achieve the Drawer layout for Desktop same as mobile then you need to paste the following code share below in the end of styles.css file.
The styles.css file doesn’t exist in the Atelier theme, so I added the code to base.css instead. However, after adding the code you shared, the desktop menu disappeared completely. There’s also no menu drawer showing on desktop (like the one on mobile)?
You’re most welcome. And I am really happy that my code works.
I would be more than happy to assist you on how you can turn the Hamburger menu from 2 lines to 3 lines.
You need to first go to Edit Code. In the Edit Code section you need to search for header-drawer-icon After this class, there will be a SVG rendering there. Which means that a Hamburger SVG render in the assets files. Remove that render line and replace it with this 3 lines hamburger SVG.
Once you replace with the code above, then you’ll see the three lines instead of the two.
Hi, I noticed on the desktop view that the hamburger menu icon is not aligned with the exit button (“X”) when the cart is open. Could we adjust the hamburger menu icon so that both are in the same position when opening and closing the cart drawer?