The right side of the mega menu keeps open by default on mobile (Enterprise theme)

ConvoyTruck
Visitor
1 0 0

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:

ConvoyTruck_0-1704293852478.png

This is what I want:

ConvoyTruck_1-1704293894354.png

 

 

Reply 1 (1)

Guleria
Shopify Partner
2947 582 831

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


 

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter