esc_html__( 'The Main Menu', 'betube' ), // Main nav in header 'header' => esc_html__( 'Top Bar Menu For Header V7 V8', 'betube' ), // Secondary nav in footer 'mobile-nav' => esc_html__( 'Mobile Menu', 'betube' ) // Secondary nav in footer ) ); $item=""; // The Top Menu function betube_top_nav() { wp_nav_menu(array( 'container' => false, // Remove nav container 'menu_class' => 'vertical medium-horizontal menu', // Adding custom nav class 'items_wrap' => '', 'theme_location' => 'main-nav', // Where it's located in the theme 'depth' => 5, // Limit the depth of the nav 'fallback_cb' => false, // Fallback function (see below) 'walker' => new betube_Topbar_Menu_Walker() )); } // Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker class betube_Topbar_Menu_Walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = Array() ) { $indent = str_repeat("\t", $depth); //$item_output .= '
' . $item->description . ''; $output .= "\n$indent