How To Make A Sticky Navigation Bar On Blogger

It’s been a week now since I finished my blog’s redesign, and I’ve had some amazing feedback! This blogging community that I’ve found myself in is seriously the best, and it’s your constant motivation and inspiring words that keep me going! After I debuted this new design, I had multiple bloggers ask me about how I did certain parts of the design, especially the sticky navigation up there at the top. I’ve always loved the look of a sticky navigation bar, because it keeps the main part of the blog less cluttered, and it’s always there no matter how far down you scroll on the page. To keep other beginner designers like myself from having to go on a whole tutorial scavenger hunt, here’s a guide for making your own sticky navigation bar!

1. Create your basic navigation bar

Before we can start any of the fancy editing, we need to make a simple navigation bar with all of your pages linked in. If you’re wanting to link to a specific type of post (lifestyle, recipe, fashion, etc.), make sure you’ve already added tags to those posts so they’ll show up when we link to them!

Go into the Layout tab of Blogger and create a new HTML/Javascript gadget in the header area. Paste the code below into it, and enter in your own information based on the hint in caps. If you want to link to a specific label, you would paste the URL of that label where it says LINK.

2. Decorating Time!

If you go to Template -> Customize -> Advanced, you can find the “Tabs” elements and edit some design aspects, like the background color and borders. This is where you can get creative! After you get the basic look done, go to Template -> Edit HTML and find “<b:skin>…</b:skin>” (CTRL + F is a coders best friend). Open that section up by clicking the “…” and scroll down to find the Tabs section. This code does all of the fine tuning for your navigation bar, from the style of the font to the color of the links. This is where the crazy stuff starts, so if you’re not skilled with coding, I found this FANTASTIC cheat sheet from xomisse that really breaks it down. Otherwise, go ahead and edit the code to your liking.

3. Making Your Navigation Bar Sticky

First, I’d suggest removing Blogger’s navigation bar. I didn’t even realize you could do this, but it’s so easy! Just go to the Layout tab, click on NavBar, and turn it off. Simple as that.

Now go to Template -> Customize -> Advanced ->

Add CSS and add the code below. For those of you who didn’t know about this nifty little tool, anything you place in Add CSS gets put above . It’s perfect for anyone who looks at their blog’s HTML and freaks out a bit. It can be pretty overwhelming!

One issue I noticed with my own blog was that my first link (Home) was partially off the page on the left side. To fix this, I just increased the “left” value until it fit.

You’ve now finished making your sticky navigation bar!

UPDATE: I will no longer be following comments on this post, so if you’re having any trouble, feel free to tweet at me!

Looking for more blogging tips? Join my group Pinterest board!

I want you to join me

Do you want to become a part of The Blogging Brew community? Join me and other amazing bloggers on my group Pinterest board! It's full of fantastic tips for blogging + business, and updated every day by members like you!

  • Lieke Bleumink

    So, i’ve got a problem. I want to center the sticky navigation bar, but when i try it, it comes below my header and it isn’t sticky anymore. What do i wrong?

    • http://thebloggingbrew.com Jessica Slaughter

      Hmm…did you add in this part of the css?

      /* Centre Navigation */

      .tabs .widget li, .tabs .widget li{

      display: inline;

      float: none;}

      If so, I’m not exactly sure what’s causing that issue…you could try increasing or decreasing the “left” value in this part of the CSS until it’s centered:

      #stickynavbar { position: fixed; top: 0px; left: 0px; z-index: 999; width:100%;}

      If neither of these work, could you link me to your blog? I’ll try my best to help you out!

      • Lieke Bleumink

        First, sorry if my english isn’t that good. But i’ve tried to increase it until it’s centered, but when i did that, the navigation bar started in the middle of my blog, so when i scrolled you saw the beginning of the bar. I hope that you understand my problem! My blog is http://www.liekemarie.nl, but it’s dutch so you might not understand it haha

  • Qritical

    Great tutorial, how do you make the navigation to the right instead of centre?

    • http://thebloggingbrew.com Jessica Slaughter

      Do you just mean the text links? If so, just change

      text-align: center !important;

      in the /* Background & Border of Navigation */ section to

      text-align: right !important;

      and you should be good! :)

      • Qritical

        hmmm, nope that doesn’t work.

        This piece of code center’s the links

        /* Centre Navigation */
        .tabs .widget li, .tabs .widget li{
        display: inline;
        float: none;}

        I’ve tried float:right; but some of the links got cut off

        • http://thebloggingbrew.com Jessica Slaughter

          Hmm, could you link to your blog? I’ll try my best to help!

          • Qritical

            It’s alright, I’m fine with it on the left. Thanks anyways, your blog is amazing and has been very helpful! If you have any insights on creating a flexslider, post a tutorial, I think it would be helpful!

          • http://thebloggingbrew.com Jessica Slaughter

            Thank you so much! And I actually haven’t thought about making a post for that, but I love that idea! I will definitely make one!

  • pao aviles

    hi im having some trouble here but i cant see any code? huhu im so sorry btw!

    • http://thebloggingbrew.com Jessica Slaughter

      Hmm, do you mean none of the code is showing up in my post?