false, // remove nav container 'container_class' => 'menu clearfix', // class of container (should you choose to use it) 'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name 'menu_class' => 'top-nav clearfix', // adding custom nav class 'theme_location' => 'main-nav', // where it's located in the theme 'before' => '', // before the menu 'after' => '', // after the menu 'link_before' => '', // before each link 'link_after' => '', // after each link 'depth' => 0, // limit the depth of the nav 'items_wrap' => '
', 'walker' => new eo_Walker_Nav_Menu(), // 'show_home' => true, 'fallback_cb' => 'eo_main_nav_fallback' // fallback function )); } } if( $eo_options['nav_select_menu'] == "1" ) { require_once(get_template_directory().'/inc/core/mobile_menu_nav_walker.php'); // _custom nav walker require_once(get_template_directory().'/inc/core/mobile_menu_page_walker.php'); // _custom page walker function eo_mobile_nav_menu() { $mobnav = wp_nav_menu(array( 'container' => false, // remove nav container 'container_class' => 'menu clearfix', // class of container (should you choose to use it) 'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name 'menu_class' => 'mobile-top-nav clearfix', // adding custom nav class 'theme_location' => 'main-nav', // where it's located in the theme 'before' => '', 'echo' => false, // echo 'after' => '', // after the menu 'link_before' => '', // before each link 'link_after' => '', // after each link 'depth' => 0, // limit the depth of the nav 'items_wrap' => '', 'walker' => new eo_mobile_Walker_Nav_Menu(), // 'show_home' => true, 'fallback_cb' => 'eo_mobile_nav_fallback' // fallback function )); echo strip_tags($mobnav, '