Open & Close Your Mobile Menu By Clicking On Another Element

If you want your mobile menu to open and close by clicking on another element (not only the burger menu) then follow these steps.

Remember to update or publish your work as you go. Follow the images below.

1.) Add Custom Class Name. 

Go to the element that you would like someone to press and for the mobile menu to open and close - for example, a button. Then add a custom CSS class name.

2.) Add Javascript. 

Once you have done this then go to Divi > Theme Options > Integrations and paste the following code into the Body section. Please make sure you change the class name in this code to the class name that you have specified.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us