Need To Change Load Order Of Adsense Ads With Wordpress
$10-30 USD
Cancelled
Posted over 7 years ago
$10-30 USD
Paid on delivery
Hey, I currently have 3 adsense ads on my site, but I need to make it so that the 2nd adsense ad on my site actually loads first. Here is an explanation of how I need it done to change the load order of the adsense ad.
How it works:
1. Include jquery in your source.
2. wrap your adsense ads in empty html containers, for example:
< div id="adsense-1" >{{adsense code}}< /div >
- check whether your site still works as intended - it should. If not, maybe post here. I don't know. May have to take a look at source.
3. remove {{adsense code}} from those containers
4. write a script [login to view URL] with the following content:
$.document(ready){
$('#adsense-1').html({{adsense code}});
}
- putting your ads in the order you want them to be loaded. most clicked one at the top.
5. include [login to view URL] in your source
Thanks!