Blogger Widgets Blogger Widgets

Add Floating facebook like button to your blog and website

    image
  1. Login to your Wordpress Dashboard.
  2. Navigate to Appearance > Widgets
  3. Drag and drop a Text (Arbitrary text or HTML ) widget to the sidebar
  4. Paste the following code inside it, if your facebook page URL is look like “https://www.facebook.com/bloggertricks” then use this code  
<script type="text/javascript">
//<!--
$(document).ready(function() {$(".w2bslikebox").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.w2bslikebox{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi39vTWlrp1Fbwuu8joGsx0RRW98i605OowjuFvSHCf0x-1oPINluasu8CyP_ldKMMEoCXD1wn6eYtmcLl-42Dp8p-VWxOrGuLk3QLJrtR_IqnkdKsad1mMkrfHdCgD8hGQIy-yXNTj67XZ/s150/w2b_facebookbadge.pn") no-repeat scroll left center transparent !important;display: block;float: right;height: 270px;padding: 0 5px 0 46px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}
.w2bslikebox div{border:none;position:relative;display:block;}
.w2bslikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.w2bslikebox span a{color: #808080;text-decoration:none;}
.w2bslikebox span a:hover{text-decoration:underline;}
</style><div class="w2bslikebox" style=""><div>

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2Fbloggertricks&amp;width=245&amp;colorscheme=light&amp;show_faces=true&amp; connections=9&amp;stream=false&amp;header=false&amp;height=270" scrolling="no" frameborder="0" scrolling="no" style="border: medium none; overflow: hidden; height: 270px; width: 245px;background:#fff;"></iframe><span>Widget by:<a href="http://www.MyBloggerTricks.com">My Blogger Tricks</a></span></div></div>
Replace "bloggertricks" with you page username. In case your facebook  Page URL  looks like 
http://www.facebook.com/pages/MyBloggerTricks/106066352757384

5. Save your widget.
6. Next In your theme options > Go to Head Code.
If your theme does not support any head code section you can get it by simply Installing a plugin with a name "Header and Footer" by "Satollo"
7. Paste the code below in the head code box


<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
8. Click Save.

 by Lord Alio
Share this article :
 

Enregistrer un commentaire

 
Copyright © 2011. LordAlio - All Rights Reserved
/www.LordAlio.com
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger
^ Scroll to Top