treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Can't give class to menu list item after clearing '' in wp_nav_menu

  • <?php $indexMenu = array (
              'menu' => 'Index page navigation',
              'container' => 'nav',
              'echo' => false,
              'items_wrap' => '%3$s',
              'depth' => 0
              ); 
              echo strip_tags(wp_nav_menu( $indexMenu ), '' )        
    ?>
    

    and i'm giving class to each menu item on Appearance > Menu but result "no classes at all"

  • What html is output...I find it difficult to believe that you can't find some selector to style even of it's not directly on the list item

  •   <nav id="indexnav>
         <a href="">Home</a>
         <a href="">Gallery</a>
         <a href="">Downloads</a>
      </nav>  
    

    now i need to give specific classe to every element, cuz i need to change orders and name often and i don't want to touch css all over again