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

How to make the login that is included in this project actually work?

This project starts off with a user login snippet in the Nav bar. We removed it in the project but after completing the course, I wanted to figure out how to re-add it and make it functional. I put it back in place like it was in the beginning of the video however, I am totally lost when it comes to getting it to work with wordpress.

Here was the snippet that was in located in the header of jumbotron.

      <form class="navbar-form navbar-right" role="form">
        <div class="form-group">
          <input type="text" placeholder="Email" class="form-control">
        <div class="form-group">
          <input type="password" placeholder="Password" class="form-control">
        <button type="submit" class="btn btn-success">Sign in</button>

Any help would be greatly appreciated.

1 Answer

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

You would probably need to use the wp_loginout() function to echo out the WordPress login box. Then you could custom with CSS or use the functions.php code mentioned here to modify how you need: