WordPress Styled Facebook Popup Like Box for Blogger

Learn how to add facebook popup like box widget in blogger blog. Add WordPress Styled Facebook Popup Like Box for Blogger. WordPress Styled Facebook Popup Like Box for Blogger

WordPress is the most popular blogging platform on the internet, but its quite expensive for beginner to start a blog on WordPress, but Blogger is almost free by all means. There are so many beginners and professionals who love Blogger instead of WordPress and I am one of them. But blogger has certain limitations and blogger is not as easy as WordPress because Blogger by default does not have attractive widgets. And that's why I started this blog to help beginners. Social Media has taken the internet to the next level and one of the easiest way to promote your article, blog or blog posts is by sharing it on social media. When anyone say the word 'Social Media', our mind automatically determines two big social media sites, Facebook and Twitter. Facebook is the largest social media platform followed by Twitter, so its always important to have massive Facebook fans with you. That is the reason why, today I will show you how you can add a Facebook popup like box widget in your blogger blog to increase your fan following on Facebook. There are so many Facebook popups for blogger but this one is the best in my opinion, because its clean and looks professional and one more thing about this widget is that its almost similar to the WordPress popup like box, which makes it more attractive. So lets begin the tutorial but see the demo first.

Live Demo

Installation Process:

1. Go to Blogger Dashboard >> Layout >> Add a Gadget
2. Select HTML/JavaScript gadget
3. Copy the below code and paste in HTML/JavaScript gadget code area.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' type='text/javascript'></script>
    #hbfanback {
        display: none;
        background: rgba(0, 0, 0, 0.8);
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
    #hbfan-exit {
        width: 100%;
        height: 100%;
    #hbfanbox {
        background: white;
        width: 420px;
        height: 270px;
        position: absolute;
        top: 58%;
        left: 63%;
        margin: -220px 0 0 -375px;
        -webkit-box-shadow: inset 0 0 50px 0 #939393;
        -moz-box-shadow: inset 0 0 50px 0 #939393;
        box-shadow: inset 0 0 50px 0 #939393;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        margin: -220px 0 0 -375px;
    #hbfanclose {
        float: right;
        cursor: pointer;
        background: url(http://1.bp.blogspot.com/-FNtcBhH50iA/VKGx_CODj0I/AAAAAAAAD5w/rbd0OLy5lDs/s1600/hb-fanclose.png) repeat;
        height: 15px;
        padding: 20px;
        position: relative;
        padding-right: 40px;
        margin-top: -20px;
        margin-right: -22px;
    .hbremove-borda {
        height: 1px;
        width: 366px;
        margin: 0 auto;
        background: #F3F3F3;
        margin-top: 16px;
        position: relative;
        margin-left: 20px;
<script type='text/javascript'>
    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 = -1;
            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' : ''
        // 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 type='text/javascript'>
    jQuery(document).ready(function($) {
        if ($.cookie('popup_user_login') != 'yes') {
            $('#hbfanclose, #hbfan-exit').click(function() {
        $.cookie('popup_user_login', 'yes', {
            path: '/',
            expires: 7
<div id='hbfanback'>
    <div id='hbfan-exit'></div>
    <div id='hbfanbox'>
        <div id='hbfanclose'></div>
        <div class='hbremove-borda'></div>
        <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FTrickzBucket&amp;width=340&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:340px; height:258px;margin-left: 8%;" allowTransparency="true"></iframe>

Widget Customization Process:

  •  Replace TrickzBucket with your Facebook page username.
  • By default, this widget will save cookies and popup box will appear once in a week per user. If you want to appear this on every page, remove the following code: $.cookie('popup_user_login', 'yes', { path: '/', expires: 7 });
  • Increase or decrease the delay time by changing value at: delay(100)

Final Words:

That's it! You have successfully added Facebook popup like box in your blog. This is one the best Facebook widgets and I am sure it will increase your Facebook fans. Enjoy blogging and leave your comments below and share your precious thoughts with me and don't forget to share this article with your friends.



Blogger Templates,5,Blogger Tips,31,Blogger Widgets,9,Computer Tricks,3,Downloads,30,WordPress Tricks,5,
Trickz Bucket: WordPress Styled Facebook Popup Like Box for Blogger
WordPress Styled Facebook Popup Like Box for Blogger
Learn how to add facebook popup like box widget in blogger blog. Add WordPress Styled Facebook Popup Like Box for Blogger. WordPress Styled Facebook Popup Like Box for Blogger
Trickz Bucket
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy