Blogger Ever

How to display a fixed sharing bar when a user scroll to post in Blogger using jQuery plugin?

jQuery plugin Waypoint is one of the most productive plugin a web-designer can use to create impressive callback function when scroll to a specific element.
How to display a fixed sharing bar when a user scroll to post in Blogger using jQuery plugin?

Scrolling events can be customized by jQuery .scroll() function, but believe me Waypoint is a jQuery plugin that gives you way more better functionality to execute function when scroll to specific element. Well in short I am going to add a sharing bar which will not be displayed on home page as well as on post pages until your scroll to post. Have a look how it is possible to make it.
  • Go to Template > Edit HTML
  • Make sure you have jQuery added.
  • Find
Paste the following code just below it
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div class="share-buttons">
    <div class="facebook">
        <div class="fb-share-button" expr:data-href="data:post.url" data-type="button_count"></div>
    <div class="twitter">
<a class="twitter-share-button" expr:data-url="data:post.url" href="">Tweet</a>
    <div class='google'>
        <div class="g-plusone" expr:data-href="data:post.url"></div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);;js.src=p+'://';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
<div id="fb-root"></div>
<script>(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'));</script>
Find </head> and paste the following code just above it.
<script src='' type='text/javascript'></script>
$(function () {
    $('.blog-posts').waypoint(function (direction) {
        if (direction === "down") {
        } else if (direction === 'up') {
Find //]]></b:skin> and paste the following code just above it.
  border-bottom:3px solid #ddd;
  padding:25px 0 25px 30px;
  border-right:1px solid #ddd;
Save your template and see the effect. If something goes wrong comment below. 

2013-2016 Copyright Blogger E\ver . Coded, managed and founded by Mohammad Hamza (@hamzadhamiya) . Hosted on Blogger and fonts used are Raleway and Open Sans.