Envince
When Max Mega Menu is enabled in Envince, you will see a duplicate menu output above the main menu.
From your WordPress Dashboard, go to Appearance > Editor, select primary.php (menu/primary.php) on the right hand side.
Replace the contents of the file with the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<nav class="navbar navbar-default" <?php hybrid_attr( 'menu', 'primary' ); ?>> <div class="container"> <?php if (function_exists('max_mega_menu_is_enabled') && max_mega_menu_is_enabled('primary') ): ?> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> <?php else: ?> <div class="navbar-header"> <?php envince_select_mobile_nav_menu(); ?> </div> <?php wp_nav_menu(array( 'menu' => 'primary', 'theme_location' => 'primary', 'depth' => 4, 'container' => 'div', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav main-nav', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker() )); ?> <?php endif;?> </div> </nav> |