Adding Scrollable Sticky Navigation Menu To Blogger

min
() Words
Share
Share
Tweet
Share
Share
Share
Pin it

Sticky Navigation menu

The sticky menu is also known as the Fixed Menu as it allows a website visitor to make hassle-free navigation along the Blogger menu. A fixed menu remains appeared at the top of blogger even when we scroll down. On the other hand, a Sticky/Fixed navigation bar remains at its fixed position when we play with our mouse scroll bar. Sticky navigation bar lets our website visitors keep an eye on our BlogSpot menu continuously as it doesn't get disturbed by scrolling down.

Checkout: How to Remove LTR and Trbidi From BlogSpot Posts

You might have seen on many Blogs and Websites, whenever you scroll down the website menu gets disappeared thus we use Back to Top button (If available) in order to make it appear again. If the website doesn't have Back to the Top option we keep scrolling back to get access to the navigation menu. There are many professional bloggers who know the truth behind the fixed navigation menus. It makes a website visitor stay on our Website for a long time.

Recommended: Strip Slideshow Widget Recommended for Blogger Sites

Creating Sticky/Fixed Navigation Menu In BlogSpot Blogger

  1. Go to your Blogger Dashboard > Theme > Edit HTML
  2. Click anywhere inside the template editor
  3. Press Ctrl + F to open the Search box
  4. Type ]]></b:skin> in the search box and press Enter Key
  5. Paste the given code just above the ]]></b:skin>
  6. .sticky{position:fixed!important;top:0;z-index:99;-webkit-transform:translateZ(0);}
  7. Now again repeat the step 4 but here you've to type the </body> instead of ]]></b:skin>
  8. After you find the </body> paste the given code just above the it and click Save Theme
<script type='text/javascript'>
//<![CDATA[
// Sticky Menubar
function makemeSticky(e){function t(){var e=s.getBoundingClientRect();e.top<0?(n.className=a+" sticky",n.style.width=i+"px"):n.className=a}var n=document.getElementById(e),s=document.createElement("div");n.parentNode.insertBefore(s,n);var i=n.offsetWidth,a=n.className+" makesticky";window.addEventListener("scroll",t,!1)}makemeSticky("menu-wrapper");
//]]>
</script>

Before you hit the Save button, replace the blue text with your Navigation Menu ID. Your Navigation menu ID can be found by clicking the Right-Click on your Navigation menu or find it directly from the template editor.

Having trouble with this tutorial? Post your valuable comments and let us help you.

Discover How to Gain Your Blog Traffic By 209%

Get Free Access

Recommended For You

2 comments:

  1. Muhammad Abba Gana18 September 2017 at 19:16

    thanks for your great work i have never seen a blog like this thanks!!

    ReplyDelete
    Replies
    1. Thank you M.Abbas Cana! A lot of fresh widgets and plugins are being developed! Keep visiting ;)

      Delete