Skip to main content

How To Add Facebook PopUp Like Box In Blogger

In my previous post we discussed about highlighting codes in Blogger with Syntax Highlighter. Today, we are going to know about Facebook popup like box for Blogger. We will discuss the various easy process to insert Facebook popup like box in Blogger and why you should use or avoid using popup like box in Blogger. Facebook is one of the largest using social networking site in the world and it can fuel large number of audience to your Blog. But you have to use it in proper way. Let's start the tutorial.
Many of bloggers are not able to increase their audience in the social sites due to less social features in their Blog. Facebook is the largest social network. Many bloggers wants to create a page in facebook to give support to their users through their Facebook page. But sadly, they are not able to bring peoples attention to their page. If you are also not able to increase your audience in Facebook and want to increase Facebook Page like than you are lucky. Facebook Popup like box will surely bring your users attention to your Facebook page.
But sometimes it may not be a good idea to make a box pop out whenever a user browse your site. If you are using lots of scripts in your Blog than it may slow down your page loading time. And you may lose some users. So, if you have very much JavaScripts in your page than it is always advised to not to mess your Blog with more Scripts. If you don't use so much scripts than feel free to use the Facebook Popup like box for your Blogger blog.

How To Add Facebook PopUp Like Box In Blogger
Facebook Popup Like Box For Blogger

If you think it will help in increasing your Facebook likes than follow the below given very easy steps. If you will follow each step carefully than you will see a Facebook Like Box will popup whenever users visits your blog/site. Now see the instructions below.
  • First of all make a backup of your Blog Template. It will help you in future if by chance you destroy your template.
  • Now, go to Blogger Home and Sign in with your Blogger/Google Account.
  • After signing in Go to Blogger Dashboard.
  • In the Dashboard Click on Template.
  • In the Template page click on Edit HTML which is below the live preview of your blog.
  • Now in HTML page search for the code given below:
]]><
  • Now add the code given below just above ]]><.
#htback {
display:none;
background:rgba(0,0,0,0.8);
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
z-index:99999;
}
#ht-exit {
width:100%;
height:100%;
}
#htbox {
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;
}
#htclose {
float:right;
cursor:pointer;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2a7vcP8SEpCS9vZix-zm12VjpZznpboxENl3Z31oY2JTioY74a_AZgIqh5voiTxQhjnIylcEtNLkfAAjL1t7VZZLp-BsM-szin0RitNXEALtL4aqceRJOqBrt6BnkPS1q40NJF0qaU2sI/s1600/fanclose.png) repeat;
height:15px;
padding:20px;
position:relative;
padding-right:40px;
margin-top:-20px;
margin-right:-22px;
}
#htclose:hover {
opacity: 0.96;
}
#htclose:active {
position:relative; top:1px;
}
.remove-borda {
height:1px;
width:366px;
margin:0 auto;
background:#F3F3F3;
margin-top:16px;
position:relative;
margin-left:20px;
}
  • After adding the above CSS code in the proper place follow next step.
  • Now search for the tag given below:
</body>
  •  Now add the couple of codes given below just above/before </body> tag.
<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 = -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' : ''
].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'){
$('#htback').delay(30000).fadeIn('medium');
$('#htclose, #ht-exit').click(function(){
$('#htback').stop().fadeOut('medium');
});
}
});
</script>
<div id='htback'>
<div id='ht-exit'>
</div>
<div id='htbox'>
<div id='htclose'>
</div>
<div class='remove-borda'>
</div>
<iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?
href=http://www.facebook.com/YOUR-PAGE-USERNAME&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'
style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'></iframe>
</div>
</div>

You are required to Replace YOUR-PAGE-USERNAME with the username of your Facebook page. Don't forget to do this. If you are not able to save your template due to some error than add replace all & sign with &amp; which is after YOUR-PAGE-USERNAME. It happens sometimes. Now you are ready for the next step.
  • Now as you have written your Facebook Username in the required place. Save the Template.
  • Congrats! you will now be able to see a Facebook like will popup in your Blogger blog.
Demo

Clicking demo button will reload this page. It is because I have added the Facebook PopUp Like Box in this page. It will 30 seconds after page fully loads. But you can change this value. Just see customization below.

Customization
  • By default the like box pop up 30 seconds after loading of your page. But if you want it appear little before or after than search for the following line of code and change 30000 to your required number.
.delay(30000)
Tip: 1 seconds = 1000, 10 seconds = 10000, 20 seconds = 20000, Change the above number keeping this in mind.

I wish it will help you in adding Facebook like box in your Blogger blog. If you face any problem in adding the like box in your blog than feel free to ask me.

Hope You Like This Post in Adding Facebook popup Like Box in Blogger.

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Get Unlimited Ammo and Health in IGI 2

After many days I am sharing a cool and interesting trick for game lovers. Do you enjoy playing IGI2? Of course you like this game. But many of you may be facing verious difficult situations in completing this game. It's because the missions are really tough and you can't complete whole IGI 2 without using it's cheat codes. There are many hacking tricks for IGI available in the Internet but most of them don't work. And this is the reason I am sharing these cheat codes to you. After reading this post you will be able to play this game without losing any health and ammo. We'll use a lite application to achieve the immortality and infinite number of ammo in this game. You will have to download the software from the link that I will provide you a little later in this post. Let's first know what this software will do. It will allow you to keep your health unlimited in IGI game. And if the health will not decrease then you will never die in the game IGI. You wil...

Block Annoying Ads in Google Chrome with Adblock Plus

Have you ever how some of the ads annoys peoples. Let's say you go to some website to download your favorite song but when you visit that site, you are welcomed with more than two or three pop-ups ads. Some websites keep more that two or three pop-ups and ads, they can place as many as 10 pop-ups on one single page. When you will visit a particular page the pop-ups will be opened automatically. We understand they need money to run their company but they should look for some good ways to show ads rather than showing forced pop-up ads, they can show ads if it that ad is relevant to their users or most of their visits their for that types of readings. Anyway, if you are really annoyed with these pop-up ads and wanted to block them than you can use a Google Chrome extension which is named Adblock Plus. This software can handle these pop-up ads very easily. It will not only block your pop-ups, it will also block the advertisement that is shown in the page too. After installing this app...

Enhancing Productivity with Virtual Desktops in Windows 11

In the fast-paced digital age, multitasking has become an essential skill for maximizing productivity. With the release of Windows 11, Microsoft introduces an enhanced Virtual Desktop feature that empowers users to organize their workspace, manage tasks efficiently, and seamlessly switch between different contexts without the clutter. In this article, we'll delve into the world of Virtual Desktops in Windows 11 and explore how this powerful tool can elevate your productivity to new heights. Task View  The Power of Virtual Desktops Virtual Desktops in Windows 11 provide users with a dynamic way to manage their open applications and tasks. Think of them as separate workspaces, each with its own set of open apps, files, and windows. This allows you to group related activities together, effectively creating a focused environment for different projects, tasks, or workflows. Getting Started with Virtual Desktops Setting up and using Virtual Desktops in Windows 11 is a breeze: 1. Creating...