How To Install Bootstrap Navbar Component To Blogger Theme
How To Install Bootstrap Navbar Component To Blogger Theme
As mentioned before, we do not use pre-installed Blogger navbar and header widgets on our blogger theme. We install Bootstrap 4 navigation bar and header directly into our template. The other important issue is about Bootstrap navbar CSS class name which need to be changed to a new CSS class name. This issue occurred due to a CSS class name conflict with the pre-setting blogger widget styling. You may refer to our previous post for the method to change Bootstrap 4 navbar class name.
Below is the HTML markup to position the Bootstrap 4 navigation bar and header of the template. Setting of the components is important as we want to place them at the most top of the page. Hence, other components, which are visible on any page, should not be installed above these component HTML markups
Method Explanation
- The Bootstrap Navbar and Header Image Components should be placed at the top position of
<body>
tag before the<div class='row'>
tag of the<b:section class='main' id='main' name='Main' showaddelement='no'>.
- The Bootstrap Navbar component should be placed inside the
<header>
tag, and the header image component should be placed outside the<header>
tag in order to make the navbar component is positioned on top of the header image component, and not separately as two different components.
There are many Bootstrap 4 Navbar and Header Image Components available on the internet. These components can be a good example that can give a new idea for us to create our own blogger theme. A good online reference for the Bootstrap 4 is MDBootstrap, which provides a free, comprehensive tutorial with easy to understand and to implement the method. Visit mdbootstrap.com for Bootstrap 4 Navbar designs and related components.
We attach below 2 examples of Basic Bootstrap 4 Navbar and Header Image components, which have been tested on our blogger theme. These components are responsive based on all screen views and easy to install on any blogger theme.
Bootstrap 4 Navbar Component Example
Navbar Examples On 3 Different Screen Views
Tips to modify button display.
- Button Position - Change button position to the left side by replacing the navbar-brand and button in the code above with the html markup below:
- Button Size - To change a button size to a smaller button, simply replace
<span class='navbar-toggler-icon'></span>
with a font awesome icon<i class='fas fa-bars'></i>
.
Comments
Post a Comment