Add Css/Jquery fixed horizontal menu to blogger blog

This navigation bar gets semi-transparent when you scroll down the page and is slightly showing up by fading out and becoming almost transparent. When the user hovers over it, the menu becomes opaque again.

Inside of the navigation there are some links, a search input and a top and bottom button that allows the user to navigate to the top or bottom of the page.

Let's start adding it...

1. Log into your Blogger account, click on your blog and go to "Template" - "Edit HTML"

2. Click anywhere inside the code area and search - using CTRL + F keys - this tag:
3. Just above/before the </head> tag, add the scripts and CSS style for the jQuery menu:
<link rel="stylesheet" href=""/>
<script type="text/javascript" src=""></script>
 <script type="text/javascript">
            $(function() {
                    var scrollTop = $(window).scrollTop();
                    if(scrollTop != 0)
                    function (e) {
                        var scrollTop = $(window).scrollTop();
                        if(scrollTop != 0){
                    function (e) {
                        var scrollTop = $(window).scrollTop();
                        if(scrollTop != 0){
4. Now search this tag:
If you can't find it, search for this one:
<body expr:class='&quot;loading&quot; + data:blog.mobileClass'>
5. Just below/after this code, copy and paste the following HTML code:
<div id="nav">
<li><a class="top" href="#top"><span></span></a></li>
<li><a class="bottom" href="#bottom"><span></span></a></li>
<li><a href='URL address'><span>Link 1</span></a></li>
<li><a href='URL address'><span>Link 2</span></a></li>
<li><a href='URL address'><span>Link 3</span></a></li>
<li><a href='URL address'><span>Link 4</span></a></li>
<li><a href='URL address'><span>Link 5</span></a></li>
<li><a href='URL address'><span>Link 6</span></a></li>
<li class="search">
<form method="get" action="/search">
<input name="q" type="text" placeholder="Search..."/><input type="submit" value="" class="searchbutton"/>
<div id="top"></div>
<div class="desc"></div>
<div id="bottom"></div>
<div class="scroll"></div>
Note: Replace URL address with the URL of your pages and Link 1, 2, 3, 4, 5, 6 with the name of the link that will appear in the menu.

6. Finally, click the "Save Template" button and you're done!

Credit goes to the original author. This widget was inspired by David Walsh's top navigation bar.


  1. wow ..., great tutorial.

  2. Is it code is working?

  3. working :) and awesome bar... :D

  4. This is such a nice bar. But I have a problem with "bottom button". Everytime I click it, I go to the top!
    Can u plz help me fix this, helpblogger?
    Here on

  5. I can't use search input also :(

  6. its amazing! thank you bro! and welcome back :)

  7. how to make post tag searchable?

  8. Same problem with the search box.

  9. Hi I was just wondering if there is a way to change the font? Thank you so much!

  10. awesome, anyway how to change the width? i need longer menus.


Although every comment is appreciated, due to an overwhelming amount of questions, I can no longer provide personalized help. Keep in mind that comments are moderated and may take some time to appear. All spam comments will be deleted. Thanks for understanding!