Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bootstrap Site Blueprints Volume II

You're reading from   Bootstrap Site Blueprints Volume II Maximize the potential of Bootstrap for faster and more responsive web applications

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Length 328 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matt Lambert Matt Lambert
Author Profile Icon Matt Lambert
Matt Lambert
Arrow right icon
View More author details
Toc

Updating the header and footer


Now that our Less variables are ready to go, let's move on to updating our template partials. At this point, we'll set up a new header and footer. We'll also create a couple of more placeholder files for sidebars, which will be added a little later. For now, create the following blank files for later use:

  • _nav-modal.ejs (if you haven't already)

  • _sidebar.ejs

  • _sidebar-search.ejs

As explained earlier, the nav modal will be our primary navigation component. The sidebar partial will be used on almost every page, so I've broken it down into a partial. Thus, it can be easily edited. Our search results page will have a different sidebar, so a partial has been created for that as well.

Coding the header

As we've done in a past project, we're not going to use the default Bootstrap header here. We're going to use the basic grid, the inline list component, and some wrapper classes to create a custom header. The header will be divided into two sections. The first will be...

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 €18.99/month. Cancel anytime