VerySimpleStart
From your WordPress Dashboard, go to Appearance > Editor. Select header.php on the right.
Find:
1 2 3 4 |
<div class="btn-menu"></div> <nav id="mainnav" class="mainnav" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'verysimplestart_menu_fallback' ) ); ?> </nav><!-- #site-navigation --> |
Replace with:
1 2 3 4 5 6 7 8 |
<?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="btn-menu"></div> <nav id="mainnav" class="mainnav" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'verysimplestart_menu_fallback' ) ); ?> </nav><!-- #site-navigation --> <?php endif; ?> |