2012 is the year of Information technology all popular websites like Google,Facebook are making there site look more demanding with latest technology this is the reason why Google completely changed looks of there products i.e YouTube , Blogger and even renamed Android Market to Google Play Store.Google not only changed the looks of there old products but also introduced Google Plus which become the true competitor of Facebook.Even Facebook try to make some changes which was not as successful as Google but still they were pretty much extra ordinary.Facebook introduced timeline which has a most important feature and it is Scrollable Navigation bar
- which allows you to navigate the page with out going to top of the page.
- when you scroll down the page it will keep following you till very end.
- which will only appear when you scroll down the page.
- if you scroll back to top it will get back to its original position.
These are the feature which do attract us although Google Dynamics has Scrollable sticky bar but it was not available for Blogger Custom Template
After the research work of 3 days and today's 5 hours of coding Finally I was able To Create MBL Scrollable Sticky Navigation Bar For Blogger.It basically works on jQuery when ever you scroll down it converts your current navigation bar into a scrolling bar and when you go back to top it comes back to its original position.So let us starting optimizing our blog for Scrollable Sticky Navigation Bar.it will just Transform your Old navigation Bar into a Scrollable Navigation Bar.
I know you would love to preview The MBL Scrollable Sticky Navigation Bar take a look at it.Remember:Your navigation bar remains the same but it will become Scrollable and sticky
Important:To Get the Preview Please Scroll the DEMO pages and you will be able to see the Scrollable Sticky Navigation Bar.
Adding CSS Style In Template
First we will add styles sheet to the blogger template i.e CSS so first go to
- Blogger.com >> YourBlog >> Template >> EDIT HTML >> Proceed
- Search For ]]></b:skin> and just above it paste the following code and save the template
Adding JQuery To Your Template:
Now We need to insert Jquery as it is the only thing which is responsible to make your navigation bar Scrollable.
- Go To Blogger.com >> Your Blog >> Layout >> Add A Gadget
- Add Html/JavaScripts >> Then paste the following code there >> And save it.
Making Your OLD Navigation Bar Scrollable:
Now this is the most important step where we will covert your Static navigation bar into a scrolling navigation bar.simply go to
- Blogger.com>>Template>>EDIT HTML>>Proceed>>
- Now Search For your Navigation Category Name i.e Home or any other let us take example of MegaBloggerlab.Blogspot.com in the navigation bar I have About as my second main category so I will search Blogger Tricks in the template Remember:The category you are searching should be the first one or second one in your navigation bar.
- When you find it you would be able to see I.e <div id='Navbar'> which is the ID of your navigation bar. .Remember:You Might not get the same div Id as all the templates are differently coded but it would be related to it i.e <div id='Nav'> , <div id='Navcontainer'> id='NavbarMenu'> and etc
- Now just above the div id of your navigation bar paste <nav>
- Just after adding <nav> tag search for </div> which will be at the end of your navigation coding. Remember:You need to find just next </div> closing tag to your navigation settings
- Replace </div> with </div></nav>
- And now Save your Template go and preview your template and it will be a photo finish
So thats how you can convert your static Navbar into a Sticky Scrollable Navigation bar.If you feel any trouble feel free I would love to help you.This is the first ever Scrollable Navigation Release over Blogger.So there are still room for improvement and from coming post surly more improved and optimized Scrollable Sticky bars would be shared till you get it done till then peace blessing happy scrolling:)
0 comments:
Confused? Feel free to ask