Online Marketing Sales & Support: 608-790-4000 scott@bernadot.com

Divi | Change Mobile Menu Order (Secondary Menu on Top)

If you would like to place your secondary menu above the primary menu within the mobile menu, do this:

Open up footer.php file (use a child theme to prevent overwrites) and after

<?php wp_footer(); ?>

add this code

<script>

jQuery( document ).ready(function() {
jQuery('#mobile_menu > li').slice(4).prependTo('#mobile_menu');

});

</script>

Comments

comments