Adding Scrollable Sticky Navigation Menu To Blogger

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.

Comments

  1. 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
  2. Awesome trick I love your work it works on my blog https://gizz9.blogspot.in/

    ReplyDelete
  3. Thank you ; love your work; i set my blog -check https://rashmidesigned.ooo

    ReplyDelete

Post a Comment

Popular posts from this blog

List of Top 11 Social Bookmarking Sites for 2018

6 Digital Marketing Strategies for Small Business

How to Create Separate AMP Pages On Blogger [AMP Plugin]