How to Add Responsive Popup Splash Ads to Blogger
Pretty posts
Most of my blogger templates buyers requested me how they can add splash ads or popup ads in their website. Splash ads is a full page ad that is displayed immediately after the page loads. It actually designed for mobile but my splash ads is responsive that means it will support both desktop and mobile.
View Demo 1 View Demo 2
Read also: Adsense: How to Add Sticky and Full Screen Ads in Blogger
View Demo 1 View Demo 2
How to Add Splash Ads to Blogger
- Login to your blogger account
- Go to Theme
- Click on Edit HTML
- Click anywhere inside the code area
- Press Ctrl+F
- Search following code
- Paste following javascript code before </body> tags
- Again search following code
- Now paste following code after <body> tags
- Click on Save template and you are done
</body>
<script>
$(document).ready(function($) {
$('.cb_splash_ads .close').click(function(event) {
event.preventDefault();
$('.cb_splash_ads').slideUp('slow');
});
});
$(window).load(function(){
setTimeout(function(){
$('.cb_splash_ads').slideUp('slow');
},3000);
});
</script>
<body>
<!--Splash Popup Ads Start-->
<style>
/*********************************
** Name: Blogger Popup Splash Ads
** Created By: www.codiblog.com
*********************************/
.cb_splash_ads {
background-color: rgba(0,0,0,0.8);
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 99999;
}
.cb_splash_ads .pop {
background-color: #fff;
margin: 10% auto 0;
padding: 5px;
position: relative;
max-width: 300px;
}
.cb_splash_ads .pop img {
width: 100%;
vertical-align: middle;
}
.cb_splash_ads .close {
opacity: 1;
position: absolute;
right: -9px;
top: -9px;
}
.cb_splash_ads .close img {
height: 32px;
width: 32px;
}
@media only screen and (max-width:768px){
.cb_splash_ads .pop {margin-top:25%;}
}
@media only screen and (max-width:320px){
.cb_splash_ads .pop {margin: 25% 3% 0;}
}
</style>
<div class='cb_splash_ads'>
<div class='pop'>
<a class='close' href='#'><img alt='' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3MWW0J6HX3PGrh4E4CXZ4QjYgWxatNFtj6T1Y_655VQraRaKyD3W56p4eG8zoNdASotXhn-yU7LUpALd-Slh5_zrCpITNxKB6IrEUr3qMh2sHA54MG_hnc5fXgWRhsdhw2wBsQ1GRc4Q/s1600/close.gif'/></a>
Here paste your 300x250 banner ad code
</div>
</div>
<!--Splash Popup Ads End-->
Replace Here paste your 300x250 banner ad code with your adsense or other platform 300x250 banner ad code.
Read also: Adsense: How to Add Sticky and Full Screen Ads in Blogger
Customize
- If you want to change automatic closing time limit, you can do it by changing 3000 value from above javascript code.
- If you want your visitors manually close popup ads by clicking on close icon, remove following code from above javascript code.
- If you want your visitors manually close popup ads by clicking on close icon, remove following code from above javascript code.
$(window).load(function(){
setTimeout(function(){
$('.cb_splash_ads').slideUp('slow');
},3000);
});
That's it. I think that you enjoyed my tutorial. Happy Commenting!




Can you show us a demo?
ReplyDeleteAs your request, i have added demo see from above.
DeleteThis Pop up Ad is working but there are issues when closing the ad. I am unable to close the ad even after removing the code.
ReplyDelete$(window).load(function(){
setTimeout(function(){
$('.cb_splash_ads').slideUp('slow');
},3000);
});
Just make sure, you added code correctly. After remove above javascript code, your javascript code look like
Delete[pre]<script>
$(document).ready(function($) {
$('.cb_splash_ads .close').click(function(event) {
event.preventDefault();
$('.cb_splash_ads').slideUp('slow');
});
});
</script>[/pre]
Hi, how to show only 1 time, when user enter in the site.
ReplyDeleteIf user open other page of same site, pop-up will be display again :(
Now it's not support with this widget. We will try to find a way for this.
DeleteCan try with cookies?
DeleteYes that can be done with cookies.
DeleteMd Jillur Rahman you are a great man i love your ways and your professional skills have been following you everywhere please i want to work with you there is a template i want you to create for me i will pay you please can we talk on facebook my FB name is Odey Richard just add me so we can talk or click my name here it will take you to my facebook
ReplyDeleteThanks i will contact with you soon.
DeleteI love this just that it pops up all the time as you go through the site page.. I removed it because of this
ReplyDeletePop ads scare visitors away
ReplyDelete