Automatically Close Divi Slide Menu When Item is Clicked


If you want the Slide In menu to close automatically when you click on a menu item, then just add the following code to: Divi > Theme Options > Integration tab > Add code to the <head> of your blog:

<script type="text/javascript">
jQuery(document).ready(function() {
        var menuItem = $('.menu-item a');
            $(this).bind('click', function(){
                $('#et-top-navigation .mobile_menu_bar').trigger('click');