How to Create Floating Ads (Floating Ads) on the Right and Left of the Blog
How to Create Floating Adsense Ads or Floating Ads on the Right and Left Sides of the Blog.
![]() |
How to Create Floating Ads (Floating Ads) on the Right and Left of the Blog |
How to Create Floating Ads (Floating Ads) on the Right and Left Side of the Blog - There are many tricks to increase your AdSense ad revenue, one of which is to place the position of the AdSense ad unit on a strategic part seen by visitors.
Implementing Floating Ads on the Left Side of the Blog
- Open Blogger Dashboard
- Go to Theme > select Layout
- Add a Gadget > Select HTML/Java Script
- Then copy and paste the code below on the gadget
- If so then Save
<!-- Floating Ads --> <style scoped='' type='text/css'> .fixed-leftSd,.fixed-rightSd{position:fixed;top:60px;width:160px;height:600px;z-index:9999;transform:translateZ(0)} .fixed-leftSd{left:0} .fixed-rightSd{right:0} .close-fixedSd{position:absolute;width:160px;height:15px;line-height:15px;font-size:11px;font-weight:400;top:-15px;left:0;text-align:center; background:#e0e0e0;color:#666;padding:5px 0;cursor:pointer} @media screen and (max-width:800px){.fixed-leftSd,.fixed-rightSd{display:none;visibility:hidden;}} </style> <div class="fixed-leftSd"> <div aria-label="Close Ads" class="close-fixedSd" role="button" tabindex="0" onclick="this.parentElement.style.display="none""> Close Ads Here </div> <!-- Ad code slot here --> </div> <div class="fixed-rightSd"> <div aria-label="Close Ads" class="close-fixedSd" role="button" tabindex="0" onclick="this.parentElement.style.display="none""> Close Ads Here </div> <!-- Ad code slot here --> </div>
Use a 160x600 pixel dynamic ad unit or a vertical ad unit in AdSense.
In addition to being used to display AdSense ads. The script can also be used for standalone ad banners or for affiliate banners.
Post a Comment