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