How To Add Sticky ADS Code To Header And Footer: Enhance Your Website’s Revenue with this comprehensive guide on How To Add Sticky ADS Code To Header And Footer to Maximize Your Blog Revenue without infringing on Ad Policies.
Discover the secret to unlocking the maximum revenue potential for your website by implementing the header and footer ad code strategy outlined in this comprehensive guide.
Introduction
Welcome to SlikkyHelp! My name is Ola, and I’ll guide you in this article on How To Add a Sticky ADS Code To the Header And Footer of your blog or website.
As your instructor, I will demonstrate how to integrate successful sticky ads into your website’s or blog’s header and footer areas.
The success of your ads hinges on adherence to Google AdSense’s guidelines and how well you use sticky ads.
Following our lead, you may navigate through each step described in this thorough guide to create an enhanced user experience on your blog while maximizing your ad revenue.
Understanding the Importance of Sticky Ads and AdSense Policies
For sites and blogs to earn money with this method, sticky advertisements must be utilized correctly.
Following Google AdSense’s regulations and those of your associated advertising providers is essential to success.
Infractions of these policies could result in account suspension and severe penalties.
To begin with, we must ensure that we don’t engage with sticky ads without a close or visible close button.
Google’s policies are violated by these kinds of stick-ad implementations, which also make your site hard to navigate at the expense of a bad user experience.
The more detrimental it is when ads clutter screens, blocking content visibility.
Both policy violations and poor user experiences are associated with these practices.
We prioritize user experience; hence, we follow policies rigorously at SlikkyHelp.
Using simplicity, we have created a strategic approach. We aim to find an equilibrium between income generation and a serene reading environment.
Our sticky ads feature an obvious close icon and “ADVERTISEMENT” label, making it easy for users to disregard unengaging ads.
A majority of websites need to observe these recommendations.
Hiding the close button inside the ad element is common in some blogs. They thought they were smart for doing so, which led to many invalid and accidental clicks.
AdSense accounts face suspension when using such strategies, which create a high influx of fraudulent clicks.
Now that you understand the precautions you must take when implementing them let’s discuss the application.
To implement these successful sticky ad strategies, I’ll credit where I first encountered this particular JavaScript code I’m about to share with you; Rakesh Solutions is where I found it before storming at it on code pen.
For sticky ads with a clear and user-friendly close icon, include the necessary JavaScript code in your website’s header or footer and your AdSense code.
You should install it in your footer before the </footer>section. But if it didn’t work in your footer, you can also insert the code in your header before the </head> section.
Sticky Ads JavaScript Code For Header or Footer
<script type='text/javascript'>
$(document).ready(function() {$('img#closed').click(function(){$('#bl_banner').hide(90);});});
</script>
<div id='fixedban' style='width:100%;margin:auto;text-align:center;float:none;overflow:hidden;display:scroll;position:fixed;bottom:0;z-index:999;-webkit-transform:translateZ(0);'> <div>
<a id='close-fixedban' onclick='document.getElementById("fixedban").style.display = "none";' style='cursor:pointer;'>
<img alt='close' src=' https://slikkyhelp.com/wp-content/uploads/2023/09/slikkyhelp_stickyads_btn_close.gif ' title='close button' style='vertical-align:middle;'/></a></div>
<div style='text-align:center;display:block;max-width:728px;height:auto;overflow:hidden;margin:auto'>
<center>
<font color="#D3D3D3">ADVERTISEMENT</font><br/>
<!-- SlikkyHelp Sticky Ads - Add Your Adsense Code Below Here -->
Insert Your Adsense or Ads Code You Want To Stick Here
<!-- SlikkyHelp Sticky Ads - Do not Add Anything Below Here -->
</center>
</div>
</div>
SlikkyHint
If your Google Adsense AUTO ADS is ON, you must implement this. After Implementing your sticky Ads, you should go to your AdSense account and turn off anchor ads. You can do so by following the Step by Step Guide Below.
Step-by-Step Guide on How to Disable Google Adsense Auto Ads Anchor ADS
- Visit Your Adsense Account
- Navigate to Ads
- Click on The Pencil Icon Beside Your Domain Where It says Auto Ads ON
- Toggle The Overlay Formats by clicking on it
- Disable Anchor Ads.
- Go Back using the back arrow button and Save!
- You’re done!
Step-by-Step Guide: Adding Sticky Ads to Your Blog Header or Footer
By adhering to these guidelines, adding sticky ads to website headers and footers becomes straightforward. You have a choice between the two primary methods of adding the JavaScript code listed below:
Utilizing WordPress Plugins
Located in the WordPress plugin repository, plugins like “Ads Inserter” and “Header and Footer Code” can aid in simplifying the process of code injection into your website’s header or footer.
To install sticky ads, follow the on-screen instructions after selecting, installing, and activating the plugin. You’ll find a place to add your script and position; follow it through.
Even those with minimal technological expertise will find this solution helpful due to its user-friendly design.
Manual Implementation
A customized approach can be taken by manually including codes in the theme’s file header or footer area. Caution must be exercised, as mistakes may lead to an unfunctional website.
A recent backup is essential before changing your website themes or core files.
If you’re a wordpress user, navigate to appearance and find theme file editor, click on that, and you can select your current theme.
Within your theme editor, navigate to the header or footer file and add the provided JavaScript code on the header or footer; depending on which place you want to inject the code, click update file when you’re done.
Check your website to see if it works.
A plugin can facilitate a hitch-free implementation if one is unfamiliar with the manual implementation. Produced by Rakesh Tech Solutions, below is a video guide that simplifies the procedure through a step-by-step visual aid.
Video Guide on How To Add Sticky ADS Code To Header And Footer
Be careful when implementing the JavaScript codes that can enhance your blog’s future income with caution. By following the guidance provided, you can enhance your earnings.
Closing Remarks and Future Recommendations
In conclusion, when used responsibly and complying with AdSense policies, sticky ads could be a valuable asset for your website or blog. They can enhance your revenue stream without affecting user satisfaction.
We are thankful for reading our guide on adding sticky ads to your website’s header and footer. A significant increase in your revenue can be achieved by correctly implementing these sticky ads while ensuring a positive user experience.
Consider spreading the word about this useful article on your social media platforms if you find some value in it. Your help is significant in continuing to provide valuable content. It truly means a lot.
To keep up with our latest shared tips and tricks, register on SlikkyHelp, which will allow you to follow me. Please don’t hesitate to use the comments section below for any questions or further assistance.
Stay tuned for more insightful articles and tips to optimize your online presence and revenue generation. Your success is our priority.