11 March 2014

Facebook PopUp Like Box with Close Button for Blogger

Facebook PopUp Like Box with Close Button for Blogger
Putting a facebook popup like box with close option is a great way to increase your likes without annoying much the blog visitor.Facebook is a great social networking site and having a well established facebook fan page with thousands of like will definitely help you to boost up your blog presence on social networking site.So here today we're going to provide a popup facebook likebox widget for your blog to increase your fan pages likes more easily and fast.You can find the live demo here in this picture.

Add Likebox on Blogger

  • Sign into your blogger account
  • Goto Dashboard
  • Select ‘Layout’ link tab
  • Click on ‘Add a Gadget’ and select ‘HTML/Javascript’ link tab widget
  • Now copy the below code and paste in it 

<style> #fanback { display:none; background:rgba(0,0,0,0.8); width:100%; height:100%; position:fixed; top:0; left:0; z-index:99999; } #fan-exit { width:100%; height:100%; } #fanbox { background:white; width:420px; height:270px; position:absolute; top:62%; left:67%; margin:-220px 0 0 -375px; -webkit-box-shadow: inset 0 0 50px 0 #3b60aa; -moz-box-shadow: inset 0 0 50px 0 #3b60aa; box-shadow: inset 0 0 50px 0 #3b60aa; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; margin: -220px 0 0 -375px; } #fanclose { float:right; cursor:pointer; background:url(http://4.bp.blogspot.com/-inGOONYeB8s/UZd3aY5bJHI/AAAAAAAATro/-YuTHmVLh8s/s1600/popup_exit.png) repeat; height:15px; padding:20px; position:relative; padding-right:40px; margin-top:-20px; margin-right:-22px; } .remove-borda { height:1px; width:366px; margin:0 auto; background:#F3F3F3; margin-top:16px; position:relative; margin-left:20px; } </style> <script type='text/javascript'> //<![CDATA[ jQuery.cookie = function (key, value, options) { // key and at least value given, set cookie... if (arguments.length > 1 && String(value) !== "[object Object]") { options = jQuery.extend({}, options); if (value === null || value === undefined) { options.expires = -7; } if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setDate(t.getDate() + days); } value = String(value); return (document.cookie = [ encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // key and possibly options given, get cookie... options = value || {}; var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; }; //]]> </script> <script type='text/javascript'> jQuery(document).ready(function($){ if($.cookie('popup_user_login') != 'yes'){ $('#fanback').delay(100).fadeIn('medium'); $('#fanclose, #fan-exit').click(function(){ $('#fanback').stop().fadeOut('medium'); }); } $.cookie('popup_user_login', 'yes', { path: '/', expires: 1 }); }); </script> <div id='fanback'><div id='fan-exit'></div><div id='fanbox'><div id='fanclose'></div><div class='remove-borda'></div> <iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php? href=Your Fan Page Url&width=402&height=255&colorscheme=light&show_faces=true&border_color=%23E2E2E2&stream=false&header=false' style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'></iframe> </div></div>

  • Now save it and you're done

 Must Read : Advance Mashable Box


Change Your Fan Page Url with your facebook fan page url and you're done

That's it.You just made a great widget for your blog,take a look on it and share your feeling about it with us.
Articles You May Like

4 comments: Leave Your Comments

  1. I don't like such pop-up boxes to appear and I have to wait for some seconds as it forces me to like the page first.

    1. That's why we provided a close button here in this widget.

  2. I was actually looking for something like this back when I just started my blog. Great article!

  3. I'm not a fan of the pop up like box but it does generate a lot of followers.