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
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025