Add WordPress Like One-Time Pop-Up Subscribe Box In Blogger!
Friends, as we all know, WordPress is one of the best, famous and great blog creators of all over the word. It supports plugins. Which means anyone can add various varieties of widgets with just one click. The best variety of widgets I have ever seen on WordPress blogs is of Subscribe boxes. In WordPress, there are many types of Subscribe boxes available; big, small, very small and also, pop-ups. The subscribe boxes that are created to work on WordPress only are immaculate, simple and attractive.
That's why, today we have brought you a fabulous WordPress subscribe box clone that will look like a pop-up, but it will not get opened in another window. But just in the front of blog darkening other sections of the blog page.
Demo: - Go here to see the demo:
Why Should I Use This Subscribe Box?
Let me give you the answer of this question very simply with cleanliness. As you know, FeedBurner is like a gift that is offered by Google which is always used to send daily updates to a visitor to his Email ID that he has provided while subscribing to your blog. You may be wondering how it can help you to produce a larger amount of traffic? The answer is simple. Whenever, a subscriber of your blog will get an update of your blog, and if you have arranged the settings of Feedburner to send only the summaries of posts (here's how), the subscriber will visit your blog to read the article that you have sent using Feedburner! So, increasing subscribers of your blog can result in an increase in traffic and by installing this widget in your blog, you can increase the numbers of subscribers of your blog.
What Are The Features Of This Subscribe Box?
Following are some features of this beautiful creation:
- Appears only one time a week;
- User-friendly;
- Comes with hover effects;
- Appears and goes with animation;
- You can use your custom picture;
- Responsive!;
- Comes with a close button!
How To Add This Subscribe Box In Your Blogger Blog?
Please follow the following steps to add this clean subscribe box into your blogger blog:
- Go to Blogger > Layout > Add a Gadget > HTML/JavaScript
- Leave the title field as it is (empty) and copy and paste the following chunk of code into the "Content" field:
<style>
#backgroundPopup {
display: none;
position: fixed;
_position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
background-color: transparent;
background: rgba(0, 0, 0, 0.5);
z-index: 999999999;
}
#popupContact {
position: absolute;
top: 18%;
left: 25%;
display: none;
position: fixed;
_position: absolute;
height: 64%;
width: 50%;
background: #FFFFFF;
box-shadow: 0px 5px 42px 2px #000;
z-index: 999;
padding: 8px;
font-size: 13px;
}
.pop-up-self {
background: #FFF;
}
.subscribe-title {
text-align: center;
font-size: 25px;
position: relative;
margin-top: 9px;
margin-bottom: 16px;
font-family: sans-serif;
}
.content-sub {
background: #00ACf5;
float: left;
padding: 25px;
margin-left: 15px;
margin-right: 15px;
}
.content-img img {
float: left;
width: 160px;
padding-top: 25px;
}
.content-text {
color: #FFF;
text-align: center;
font-family: sans-serif;
font-size: 18px;
line-height: 25px;
padding-left: 183px;
padding-top: 17px;
}
.content-form {
margin-top: 32px;
}
.content-form form input.email-address-subscribe:hover {
box-shadow: 0 0 7px -1px #004E6F;
background: #F7F7F7;
}
.content-form form input.email-address-subscribe {
font-size: 16px;
transition: .2s;
padding: 18px;
border-radius: 5px;
width: 90%;
border: 0;
}
.content-form form input.buttom-subscribe {
padding: 18px;
cursor: pointer;
color: #FFF;
font-weight: 700;
font-family: sans-serif;
border: 0;
border-bottom: 3px solid #74A700;
font-size: 16px;
background: linear-gradient(#a9d249, #8dc437);
}
#prdh {display:none}
#popupContactClose:active {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAY1BMVEUAAAD///+SkpI9PT339/eenp4zMzP8/Pzw8PC7u7vFxcXs7Oz09PRsbGxKSkqOjo7l5eWIiIitra0qKioPDw/T09NWVlZ3d3fNzc0aGhpPT0+AgIBFRUVeXl5jY2Pe3t4iIiLbYsqoAAADUklEQVRYhe3Z25qiMAwA4FRAQFCxHnAUdd7/KQcVsG0OLbC7315MLgf8J9bSpgHUXwv4pf9Huiyqqij/LF0edd3AEE2tjyH/wUsX+nIAFIeLLubRsY4w20ek48l0uSPytXLfSQPD0/FOdt+x4zNnae3JeMhcj6Srxo/20VRj6DwcfkYeTtfjZIA6kE5PY2WAUxpCx1/jZYAvPFMQXS6nyABLNMVdOp2U8ytvd0xc+jJVBrjI9Hq6DLCWaD1HBtA8/ZgnAzxYeuLk+MSSo5O5MkBC0xlx601a/27E3zKSJmZHu+6w20z75Vf4r2uKLkhZxYz9evoIuyBonHS3VpJLd/S+hu0a0zjpfhVON4Tcr0bYLhC9cG+5fkYN2dHn2ta9tkA0+u/GD+LmvTFWULxtuPQRf+nF5/PK2h02xgXiWTg69BXfwtmbVJSHkexp8hkn7ZOc8+dp7+iKugdgazA3LKOf/h2VRXPVwc61A+R+1nY0W4Q5trlzc3L/mY7miyXLNnNGE3qIxqLZ26xHJzVylopNk46F+0w7TIbYoJkJwttygVwZ9Fm8E9vUA2bE2aCJddeKepQMK4P2Fr3rMXI3sQPppbHWpd6y3qR9AxIpK4i9wYpVOB05FS6173C0XDY5Ofvzfhg0VYKwOT+D2+ffkRm09KATOT9DspVJfwflvDXWbyHvvUWzZ66lvYqa+w5r1xbNVZLmCeW1Phs2m3di0cSGTuTs2FzeD4suydMRyjko7/6c1+/o97CcQ/K+K5smVhEy54C8c4dO0R3fipHtvPfog8qhcQ28YGX52hrReI4MZwdiZg42XiKOiMb1wj5j5cHO0Hg0CtN4YT1krNzZGT5FrQia+EGeebMnvgWVc79+ODSxrR9yoSq45sTJ70zS5GMzMu6Kpsv5dMnQcxsLTmvBblrMaoe4DRGn1RLYkqTjoCRaris9UYk0tyeExFHJtLeQYmPlSriFONFGMtX4nDQm7mjQ9JTfkuozk53glGr9CHEjmrVsa3xUhyuhDa6hXwR3QC/cWxT+NURg553uuMt0u1rhld6JPfsOwkO3mYsl+obP2E+3Y54wh6Im8b2pCni9VuRXp0aKrrn3DVj4S8HinOukDZ2fA9RR9IT4pf8d/QPBoSMrFGvocgAAAABJRU5ErkJggg==) no-repeat;
background-size: 20px;
width: 18px;
height: 19px;
}
#popupContactClose {
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAaVBMVEX///8AAAD29vb+/v739/f9/f36+vr4+Pj5+fn8/Pz7+/sEBAQDAwOlpaWioqJOTk7k5OTs7Ox4eHhmZmaKiopUVFS5ublxcXHAwMCWlpYXFxc9PT2Dg4PKysrX19ckJCRcXFwxMTGwsLAq0y3IAAAILUlEQVRYhZVZh7KqMBBdelMB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4U3sM4tMY0JtkCtJaWs5Hde/Y85MW8sUGEI+kkWhndmdpH/E7B2QFbUkKUdqk1CyzuRTG7wLu2sY6Xk5djvaAPZKFToP+rIYyEeS0/AjT3QPy//lRhreBfMnG1r/rt9oNQ+4Nf/J56i5CeaAWthhYciXWL9RNpUmdd+xUla5YZvMt6awmNXz2edvNA8ILmXyZ8zhJVDMjmQhn+M3oP0EdtaSzObP2VjPZzMP+bQjyUy+dCDy3Q5OXr+5UUJTBzpwu2elKzmx5Bts8GiUwsOTdIUbOjyRUdbRGQvRwuTze4wy8tH99Zl87hxmuvPMNafMcDpjKUMXYcbJQft2JmD7LoTR5JCSSh1UKYZ3NpXMOpn65y6w80DKNa9dGw3TNRqvMV7eIk0E9kiFK1nIN/XPnMj6k8aqPuyPj/2h1uuNqSM5psRjzNSmmffPuF4dXKNR5sY59Wr69MVEMmQLDgPK732APrsE9y/NpecnAB75Jn4jtWNjI1Lnu/Ll4wVmSDjbp0ch6vlSs8BwRcPukx12D9Pu/sTDbjvfFiIP026RnCQyk5clmix4No/oT/2tqm796XDcPXlELxP8qJhZ+N5/S8eCxwrSB8QAAAAASUVORK5CYII=) no-repeat;
width: 20px;
background-size: 20px;
height: 20px;
display: inline;
z-index: 3200;
border-radius: 100%;
overflow: hidden;
position: absolute;
top: -10px;
right: -10px;
cursor: pointer;
text-indent: -99999px;
}
</style>
<div id="backgroundPopup">
<div id="popupContact">
<a href="javascript:void(0);" id="popupContactClose">x</a>
<div class="pop-up-self">
<div class="subscribe-title">
Subscribe Now!</div><div class="content-sub">
<div class="content-img">
<img src="http://s1.postimg.org/o61eqmvtn/set_37_icon.png" />
</div>
<div class="content-text">
We have started a blogging series about "How To Be A Blogger" on Blogger Guider. So, the peoples who do not know what Blogger is will get to know. We are here to invite you to subscribe to our new posts newsletter. So, you will get all our new posts quickly on your Inbox. Just put your email in below field.
</div>
<div class="content-form">
<a href="http://www.bloggerguider.com" id="prdh">Blogger Guider</a><form action="https://feedburner.google.com/fb/a/mailverify" method="post" onsubmit="window.open("https://feedburner.google.com/fb/a/mailverify?uri=BloggerGuiders", "popupwindow", "scrollbars=yes,width=550,height=520"); return true" target="popupwindow">
<table width="100%">
<tbody><tr>
<td>
<input class="email-address-subscribe" name="email" placeholder="Email" type="text" />
</td>
<td width="64px">
<input class="buttom-subscribe" type="submit" value="Subscribe Now!" />
</td>
</tr>
</tbody></table>
<input name="uri" type="hidden" value="BloggerGuiders" />
<input name="loc" type="hidden" value="en_US" />
</form>
</div></div>
</div>
</div>
<script type="text/javascript">
jQuery.cookie=function(key,value,options){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():'',options.path?'; path='+ options.path:'',options.domain?'; domain='+ options.domain:'',options.secure?'; secure':''].join(''));}
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;};
var popupStatus = 0;
//this code will load popup with jQuery magic!
function loadPopup(){
//loads popup only if it is disabled
if(popupStatus==0){
$("#backgroundPopup").fadeIn("slow");
$("#popupContact").fadeIn("slow");
popupStatus = 1;
}
}
//This code will disable popup when click on x!
function disablePopup(){
//disables popup only if it is enabled
if(popupStatus==1){
$("#backgroundPopup").fadeOut("slow");
$("#popupContact").fadeOut("slow");
popupStatus = 0;
}
}
//this code will center popup
function centerPopup(){
//request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#popupContact").height();
var popupWidth = $("#popupContact").width();
//centering
$("#popupContact").css({
"position": "absolute",
});
}
//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
if ($.cookie("anewsletter") != 1) {
//centering with css
centerPopup();
//load popup
loadPopup();
}
//CLOSING POPUP
//Click the x event!
$("#popupContactClose").click(function(){
disablePopup();
$.cookie("anewsletter", "1", { expires: 7 });
});
});
</script></div>
- Now, click on Save changes button and now go to Blogger > Template > Edit HTML
- Now, find ]]></b:skin> in your template and place below code above it to make the pop-up subscribe box responsive:
@media only screen and (max-width: 600px) {
#backgroundPopup {display:none!important;}
}
@media only screen and (max-width: 768px){
.content-text {font-size: 14px!important}
}
@media only screen and (max-width: 667px) {
.subscribe-title {display:none}
.content-sub {margin-top: 12px;}
}
@media only screen and (max-width:1024px) {
.content-text {padding-left:0!important;}
.content-img img {display:none}
}
Customization:
Now, the next step to customize this Subscribe box. See all the colored words in the above codes and change it according to described:- Change violet color code with the hexadecimal code you want or leave it as it is.
- Change purple color URL if you wish to change the picture that will appear on Subscribe box.
- Change blue color words to change the text of Subscribe box.
- Change red color words (twice) with your Feedburner URL.
- Change orange color words to change the pop-up's title.
Final Words
I hope you have liked this widget. It is the one of it's kind subscribe box on the whole blog-o-sphere. If you have liked this blogger widget, then kindly leave your comment below and share this post across various social platforms. Take care. Thanks!
0 Response to "Add WordPress Like One-Time Pop-Up Subscribe Box In Blogger!"
Posting Komentar