Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Everyone,
I am using the Enterprise theme for our website and I am facing an issue with the "Right hand side links" of the "Sidebar Mega Menu" on mobile devices. I would like to have the disclosure__panel closed by default for mobile devices.
Do you have any soltution for this?
This is how it looks like:
This is what I want:
Hello @ConvoyTruck ,
On click of the hamburger icon on mobile trigger click the menus which are open by default.
e.g.
$(document).ready(function() {
// Get references to the hamburger icon and the menu
var hamburgerIcon = $("#hamburger-icon");
var menu = $("#menu");
// Add a click event listener to the hamburger icon
if (hamburgerIcon.length && menu.length) {
hamburgerIcon.click(function() {
menu .trigger("click");
});
}
});
Change class/id with the actual one you have any maybe you have to change code a/to the theme you are using.
Thanks
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024