Recommended: Float AdSense and other Ads on left or right side of your Blog
Recommended: Float 300px X 250px Advertisement Middle of Blogger Site
I have kept the older concept of floating advertisement widget and just added extra spice by integrating Facebook like box. And both widgets will float on your Blog landing page as well as all other pages. Though this first experimental and hopefully I will release more advance version of this widget.
Live Demo
Now it's time to including the widget with your Blogger template. Please follow the below steps that might be helpful for integrating this widget.
Note that, this code is protected by DMCA. If anybody try to republish or reproduce this tutorial without my permission, then I will complain to DMCA for your site removal.
Step 1 Log in to your Blogger Account and Go to your Blogger Dashboard
Step 2 Go to your Layout tab.
Step 3 Click on "Add a Gadget" then select "HTML/JavaScript" Gadget.
Step 4 Now Copy the below code and Paste it in "HTML/JavaScript" Gadget.
<style>
#BloggerSpices.com{
height:0px;
width:auto;
background:transparent url('..');
background-repeat:repeat-x;
text-align:left;
padding-top:0px;
}
#Biggapon{
height:280px;
margin:0 auto;
width: 620px;
background:#FEFEFE;
text-align:center;
padding:4px;
}
#BiggaponArUpore{
opacity:1.0;
height:auto;
width:auto;
position:fixed;
top:30%;
left:30%;
background:transparent;
padding:0px;
z-index:1001;
font-size:13px;}
</style>
<script type="text/javascript">
function getValue()
{
document.getElementById("BiggaponArUpore").style.display = 'none';
}
</script>
<div id="BiggaponArUpore">
<div id="BloggerSpices.com">
<span style="color:#333333;font-size:13px;font-weight:bold;float:right;padding-top:1px;padding-right:10px"><a href="http://www.bloggerspice.com/2015/01/add-floating-facebook-and-advertisement-widget-at-a-time-in-Blogger-Site.html" target="_blank" onclick="getValue()">close(x)</a></span>
</div>
<div id="Biggapon">
<p>
<table border='0' cellpadding='0' cellspacing='0' color='#FFFFFF' width='610' style='margin: 5px 5px 0 0'>
<tr>
<td align='center' style='background-color: #FFFFFF; padding: 5px;' width='300'>
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FBloggerSpice&width=300px&height=250&colorscheme=light&show_faces=true&header=false&stream=false&show_border=false&appId=148365041942530" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:250px;" allowtransparency="true"></iframe>
</td>
<td align='left' style='background-color: #FFFFFF; padding: 5px;' width='300'>
Place Advertisement Code Here
</td>
</tr>
</table>
</p>
</div>
</div>
Step 5 Now Press on SaveButton.
Customization
- Replace BloggerSpicewith your facebook page name. Also change application id 148365041942530 if possible.
- Replace Place Advertisement Code Here with your AdSense or others ads code.
- Change top:30%; and left:30%; for positioning the ads in center of your Blog site.
- To increase or decrease widget width please change the value width: 620px.
Congratulation!!! now check your Blog and see the widget appearing with Facebook like box and Advertisement together. For any further support feel free to write me. And stay tunes for more exciting release.
No comments:
Post a Comment