Shopify themes, liquid, logos, and UX
Hello
I would like my Mobile Menu to open downwards and not to the side ( as this means too many clicks)
I am using the Broadcast Theme
datsau
Hi,
Hope this will help
- Edit header.liquid or mobile-menu.liquid to change menu button.
- Add JavaScript to show/hide menu as a dropdown.
JavaScript example
function toggleDropdownMenu() {
let menu = document.querySelector(".mobile-menu");
if (menu.style.display === "block") {
menu.style.display = "none"; // Hide menu when clicked again
} else {
menu.style.display = "block"; // Show menu as dropdown
}
}
- Use CSS to style the dropdown effect.
CSS example
.mobile-menu {
display: none; /* Hidden by default */
position: absolute;
width: 100%;
background-color: white;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.mobile-menu-toggle {
cursor: pointer;
}
Hey 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, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025