Tag Info

New answers tagged

0

wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'header-menu' , 'depth' => 1) ); you can use depth parameter for this.. Click here! More Info: child theme Create child theme and copy code from header.php of parent theme then replace the code wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'header-menu' ) ); with the ...


1

If I understand correctly, you want links with submenus to have an attribute of aria-haspopup. If this is correct, you should be able to do so using the nav_menu_link_attributes filter (WP 3.6 and above). You can also get around the necessity of having to write a custom Walker to check if an item has children by checking its css classes in the filter. ...



Top 50 recent answers are included