Open & Close Your Mobile Menu By Clicking On Another Element
Written by the Divi Engine Documentation Team
Introduction
Follow these steps to open and close your Divi Mobile menu by clicking another element.
Step 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.
Step 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.
More Support?
Please email us at [email protected] if you are unable to get Divi Mobile working.