Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Setup a Bootstrap Theme Creating Bootstrap Navigation in WordPress

nav navbar-nav

Where did Zac figure out the class for the video Creating Bootstrap Navigation for Wordpress? The video doesn't explain where it comes from inside the header.php.

<?php
            $args = array(
              'menu'        => 'header-menu',
              'menu_class'  => 'nav navbar-nav',
              'container'   => 'false'
            );
            wp_nav_menu( $args );
          ?>

2 Answers

Kevin Korte
Kevin Korte
28,148 Points

That's part of the Bootstrap markup. If you look at their docs here: http://getbootstrap.com/components/#navbar for the navbar, you'll see you have to use the nav navbar-nav classes on the unordered list that is the navigation.

Glenn Basgaard
Glenn Basgaard
7,987 Points

To go even further it's located inside of the toggle nav for the responsive design when the screen becomes smaller. If you inspect the element and go into the toggle nav further you will find it.