false, // Remove nav container 'menu_class' => 'horizontal menu align-center mainmenu ', // Adding custom nav class 'items_wrap' => '', 'theme_location' => 'primary', // Where it's located in the theme 'depth' => 5, // Limit the depth of the nav // Fallback function (see below) 'walker' => new Topbar_Menu_Walker() )); } // Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker class Topbar_Menu_Walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = Array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent