How To Add Scrolling Sticky Bar To Blogger?

On-Scroll Sticky Bar. A simple widget which appears in the upper part of your page as you scroll down and disappears again on reaching the top something similar to the Facebook header bar. It contains social sharing options as well as links to Home Page of your blog. Also present are the Slide to Top and Email subscribe options. This can be easily customized to include options according to your needs. Lets get started and see how to add it in your blog !

To add to sticky bar I will recommend you to use old blogger user interface because as per widget author it throws an unexpected error,you can switch back to old blogger interface by clicking on the Settings Wheel icon at top right of your new blogger dashboard.


You can see the live demo on this very page itself ! Please scrool to  down this page, you can see it.

sticky header bar

How To Add Scrolling Sticky Bar To Blogger? Please follow the step by step below:

Steps 1 : Adding CSS code The Bar Styles

  1. Go to Blogger Dashboard and open up the Design Tab of the blog in which you want to add the Scrolling Sticky Bar. Now select the Edit HTML option.
  2. find for  ]]></b:skin>
  3. add the following CSS code just before ]]></b:skin> tag 

#SYB-Bar-Container { background-color:#f6f6f6; background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#f9f9f9), to(#f1f1f1)); background: -moz-linear-gradient(linear, 0% 40%, 0% 70%, from(#f9f9f9), to(#f1f1f1)); } #SYB-Bar-Container , #SYB-Bar-Left .Home a, #SYB-Bar-Right .btt a,.SYB-emailsubmit { box-shadow: 0 5px 5px -5px #999; -webkit-box-shadow: 0 5px 5px -5px #999; -moz-box-shadow: 0 5px 5px -5px #999; } #SYB-Bar-Container{ margin: 0px 116px; top:-100px; -moz-border-radius:0px 0px 10px 10px; -webkit-border-radius:0px 0px 10px 10px; border-radius: 0px 0px 10px 10px; text-align:center; border-bottom: 1px solid #aaa; z-index:999; padding:4px; height:33px; position:fixed; vertical-align: baseline; } #SYB-Bar-Container *{ padding:0; } #SYB-Bar-Container a { text-decoration:none; } #SYB-Bar-Content{ width:1024px; margin:0 auto; } #SYB-Bar-Content li{ list-style:none; float:left; } #SYB-Bar-Left{ float:left; width:45%; } #SYB-Bar-Right{ float:right; width55%; } #SYB-Bar-Left li{ margin-right:1%; margin-top:-7px; } #SYB-Bar-Right li{ margin-top:-7px; } #SYB-Bar-Left .Home a, #SYB-Bar-Right .btt a,.SYB-emailsubmit{ font-size:9pt; font-family:cambria; font-weight:Bold; text-transform:uppercase; color:#fff; text-shadow:0 -1px 1px rgba(0,0,0,0.25); letter-spacing: 1px; padding:6px; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; } #SYB-Bar-Left .Home a:active, #SYB-Bar-Right .btt a:active,.SYB-emailsubmit:active{ position: relative; top: 1px; box-shadow:none; } #SYB-Bar-Left .Home a{ background:#143eb4; } #SYB-Bar-Left .Home a:hover{ background:#1556fa; } #SYB-Bar-Right .Subscribe{ margin-top:-14px; } #SYB-Bar-Right .btt a{ background:#00810b; margin-left:3px; } #SYB-Bar-Right .btt a:hover{ background:#06b421; } .SYB-emailsubmit{ background:#ce1527; cursor:pointer; border:none; height:26px; width:90px; } .SYB-emailsubmit:hover{ background: #f02a37; } .textarea{ border:1px solid #aaaaaa; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; resize:none; font-size:8pt; font-family:verdana; width:170px; height:25px; color:#000000; } #share-top{ background: #f9f9f9; border:1px solid #dddddd; line-height: 1; margin: -4px 0 0 60px; padding: 10px 0 2px 5px; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; } #share-top li { display: block; margin-right: 0; } #facebook-widget,#google-widget,#twitter-widget {display:none; } @media only screen and (min-width : 768px) and (max-width : 1050px),only screen and (min-device-width : 768px) and (max-device-width : 1024px){ #SYB-Bar-Container{ display:none; } }

Step 2 : Adding CSS code The Bar Styles

    1. Now find for  </body> tag
    2. add the following script code below just before </body>  tag  

    // 50){b.stop().animate({top: “0px”}, 0)}else{b.stop().animate({top: “-100px”}, 0)}}); //]]> $(document).ready(function(){// fade in .btt $(function () {$(window).scroll(function (){});// scroll body to 0px on click $(‘.btt a’).click(function () {$(‘body,html’).animate({scrollTop: 0}, 350);return false;});});}); (function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); = id;js.src = “//”;fjs.parentNode.insertBefore(js, fjs)}(document, ‘script’, ‘facebook-jssdk’));
    Note: In case you have already included the jQuery library in your blog then remove Line 1 . The same applies for Line 12 ,13 and 14 as well if you have included Facebook , Google+ and Twitter scripts respectively.

    Step 3 : Adding The HTML code

    1. Now search for <body tag  and add the following code just below it If you are using default blogger templates then search for <body tag. See Video tutorial below for more details information. 
    2. add the following code below just below of code  <body tag 
    3. Hit the Save Template button and preview your blog to see how the bar appears.

    Note: before installing the html code, you first have to change the blog url and the url feed first post with a link url and link url fedd blog post from your blog to redirect to your blog.

    Line No. 4 :
    <li class=’Home’> <a href=’’>Home</a&gt; </li>
    Replace with your blog URL.

    Line 15:
    <form action=’; method=’post’ onsubmit=’';, 'popupwindow', 'scrollbars=yes,width=550,height=520');return true’ style=’padding:3px;text-align:center;’ target=’popupwindow’>

    Line 16:
    <input class=’textarea’ gtbfieldid=’3′ name=’email’ onblur=’if (this.value == “”) {this.value = “”;}’ onfocus=’if (this.value == “”) {this.value = “”;}’ placeholder=’ Enter Your Email Address :)’ type=’text’ value=”/> <input name=’uri’ type=’hidden’ value=’stylifyyourblog’/><input name=’loc’ type=’hidden’ value=’en_US’/> <input class=’SYB-emailsubmit’ type=’submit’ value=’Subscribe’/> </form>

    Line 15 and 16 replace instance of stylifyyourblog with your RSS Feed Name.

    Video Tutorial :

    This blogger widget created by Prayag from Stylifyyourblog and I share again on
    If you have any ideas or questions about this widget then feel free to share with us. 🙂

    Happy Blogging….


    Tinggalkan Balasan

    Please log in using one of these methods to post your comment:


    You are commenting using your account. Logout /  Ubah )

    Foto Google

    You are commenting using your Google account. Logout /  Ubah )

    Gambar Twitter

    You are commenting using your Twitter account. Logout /  Ubah )

    Foto Facebook

    You are commenting using your Facebook account. Logout /  Ubah )

    Connecting to %s