In this tutorial I will show you how to
add a cool floating Facebook like box widget for Blogger that slides to the
left on mouse over.
Demo: You can see a static Facebook badge at the right side
of my blog and yeah please like it :)
1) Go to Blogger Dashboard (DropDown
Menu) --> Template --> Edit HTML --> Proceed
2) Backup
your Template before
making any changes to your blog
3) Now Expand Widget Templates
4) Find the code highlighted yellow below using [ctrl+F] or F3
</head>
5) Copy the code highlighted below and paste it Before/above
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
6) Now find the code highlighted below
</body>
7) Copy the code highlighted
below and paste it Before/above
<style type="text/css">/*<![CDATA[*/#fbplikebox{display: block;padding: 0;z-index: 99999;position: fixed;}.fbplbadge {background-color:#3B5998;display: block;height: 150px;top: 50%;margin-top: -75px;position: absolute;left: -47px;width: 47px;background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimMyavcXlcav6Yy0IbYwSoc4pCvyFq-2jH0bDH3cbd4k8ojBZho1Su6hM5hIueL0uJGjyflqlYxjqwBH7g4HFdOMZX0UU23p4wr2wKe_QjZ87C83IKVJxNQaWq4lYUydQaZh6wGB4hp1c/s1600/vertical-right.png");background-repeat: no-repeat;overflow: hidden;-webkit-border-top-left-radius: 8px;-webkit-border-bottom-left-radius: 8px;-moz-border-radius-topleft: 8px;-moz-border-radius-bottomleft: 8px;border-top-left-radius: 8px;border-bottom-left-radius: 8px;}/*]]>*/</style><script type="text/javascript">/*<![CDATA[*/(function(w2b){w2b(document).ready(function(){var $dur = "medium"; // Duration of Animationw2b("#fbplikebox").css({right: -250, "top" : 100 })w2b("#fbplikebox").hover(function () {w2b(this).stop().animate({right: 0}, $dur);}, function () {w2b(this).stop().animate({right: -250}, $dur);});w2b("#fbplikebox").show();});})(jQuery);/*]]>*/</script><div id="fbplikebox" style="display:none;"><div class="fbplbadge"></div><iframe src="http://www.facebook.com/plugins/likebox.php?href=YOUR-FACEBOOK-PAGE-URL&width=250&height=250&colorscheme=light&show_faces=true&border_color=%23C4C4C4&stream=false&header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#FFFFFF;" allowtransparency="true"></iframe></div>
8) Replace YOUR-FACEBOOK-PAGE-URL text above with the URL of your facebook fan page.
9) Click Preview and if it works, click Save Template.
0 comments
If you find some links broken then tell me by commenting, I'll repair.
Please don't spam as it will be deleted.
If you like this post please share it with your friends.