Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bootstrap Site Blueprints Volume II

You're reading from  Bootstrap Site Blueprints Volume II

Product type Book
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Pages 328 pages
Edition 1st Edition
Languages
Author (1):
Matt Lambert Matt Lambert
Profile icon Matt Lambert

Adding the navigation modal


Before we move on to coding the footer, I think this would be a good time to set up the navigation modal. As in the previous chapter, we're going to use a Bootstrap modal component and customize it to look like a full page overlay when you click on the hamburger icon in the header links. Let's start by opening up _nav-modal.ejs, which is in the /partial directory. Once you have it open, insert the following code:

<div class="modal fade" id="nav-modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
      <div class="modal-body">
        <div class="row">
          <div class="col-lg-12">
            <div><a href="#">+ Add Content</a></div>
            <div><a href...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime}