I have the Dawn theme for Shopify but it has a dropdown menu on desktop but a drawer menu on mobile. I want to get a dropdown menu on mobile. Can you help me?
Topic summary
A Shopify store owner using the Dawn theme wants to replace the default mobile drawer menu with a dropdown menu, similar to the desktop version.
Technical Solution Provided:
One responder outlined a multi-step approach involving:
- Commenting out the drawer menu code in
header.liquid - Duplicating desktop dropdown menu structure for mobile
- Adding CSS media queries to control dropdown visibility
- Implementing JavaScript for touch-friendly tap-to-toggle functionality
Current Status:
The original poster found the technical instructions difficult to understand and requested simpler guidance. They’ve shared their store URL (shop13pk.myshopify.com) and password, offering partner integration access for direct implementation assistance.
Key Concern Raised:
One participant questioned whether there’s sufficient mobile screen space for dropdown menus, suggesting this design choice may have usability implications.
The discussion remains open, awaiting either simplified instructions or hands-on implementation help.
Hi @shoppk
on mobile we don’t have space to show dropdown menu
How about the mobile space on your store? let share it with me
Here’s an approach to implement a dropdown-style menu on mobile:
- In header.liquid, find and comment out or remove the code that calls the menu-drawer component (usually inside a mobile menu toggle button).
{% comment %}
<button class=“header__icon header__icon–menu” … >
…
<menu-drawer … >
{% endcomment %}
- Locate the code used to render desktop dropdown menus — typically in header.liquid or component-menu.liquid — and duplicate or reuse that structure for mobile screen widths.
-
{% for link in section.settings.main_menu.links %}
-
{{ link.title }}
{% if link.links.size > 0 %}
-
{% for sublink in link.links %}
- {{ sublink.title }} {% endfor %}
{% endfor %}
- Add styles to control visibility and dropdown behaviour for mobile:
@media screen and (max-width: 749px) {
.mobile-submenu {
display: none;
}
.mobile-nav__item:hover > .mobile-submenu {
display: block;
}
.mobile-nav__item {
position: relative;
}
.mobile-submenu {
position: absolute;
background-color: #fff;
left: 0;
top: 100%;
z-index: 10;
}
}
- To make it touch-friendly, you can add a small script to toggle dropdowns on tap instead of hover:
document.querySelectorAll(‘.mobile-nav__item > a’).forEach(link => {
link.addEventListener(‘click’, function(e) {
const submenu = this.nextElementSibling;
if (submenu && submenu.classList.contains(‘mobile-submenu’)) {
e.preventDefault();
submenu.classList.toggle(‘visible’);
}
});
});
Add the .visible class in your CSS to display the dropdown.
Let me know if this works for you.
I don’t understand what you’re saying.
Please share me your store url & password (if applicable) to let me check & give you the solution
If I give you access, you will do this.
I will give you the partner integration code, you send the request.
Password 5256
Can you tell me the easy solution to this?