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 trialJoseph Damiani
1,066 Pointsnav 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
28,149 PointsThat'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
7,987 PointsTo 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.