Automatically Close Divi Slide Menu When Item is Clicked

Instructions

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');
        menuItem.each(function(){
            $(this).bind('click', function(){
                $('#et-top-navigation .mobile_menu_bar').trigger('click');
            });
        });
    });
</script>