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

Isaac Russell
Isaac Russell
12,091 Points

How do I build a menu in Wordpress with Bootstrap styles?

How can build a menu in Wordpress with Bootstrap 3 styles?

I would specifically like to use the .nav-pills class. http://getbootstrap.com/components/#nav

I have a simple 5 page menu. (As shown below) /// <!--Navbar --> <div class="container"> <header class="page-header"> <ul class="nav nav-pills pull-right"> <li class="active"><a href="front-page.php">Home</a></li> <li><a href="about.html">About</a></li> <li><a href="projects.php">Projects</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="home.php">Blog</a></li> </ul> <h3>Heading 3</h3> </header> <h1>Heading 1</h1> </div><!--End Navbar --> </div> ///

I am using the following tutorials: (1) How to build a Wordpress theme. (2) Frameworks Basics (3) How to Build a Responsive WordPress Theme with Bootstrap (found on blog.teamtreehouse.com

But none of the tutorials address this specific idea.

Please help.

I currently have built 2 menus basically independently of each other. One that is unstyled with Wordpress. And the other a static copy based off the Frameworks Basics tutorial.

How what is the proper procedure? I would like the final product to be styled as navpills similar to the final bootstrap website in Frameworks Basics but yet the site to be a working wordpress site as well.

Please advise

Guil Hernandez Zac Gordon

2 Answers

James Barnett
James Barnett
39,199 Points

A quick google led me to Bootstrap Walker plugin for Wordpress. Here are some instructions that should get you pointed in the right direction with bootstrap menu on Wordpress.

http://www.jeffmould.com/2013/10/14/building-a-wordpress-menu-bar-with-bootstrap-3/

After that it's just CSS styling.

Isaac Russell
Isaac Russell
12,091 Points

James,

Thanks so much for your help. Your solution worked!