We are trying different method for ad a not adsense random header ad to Newspaper Theme but We cannot make work fine this.
For single Header ad we use this code:
<div class="td-all-devices">
</div>
There are any tryed code for make a Not Adsense Random Header Ad?
Thanks in advance!
-
This topic was modified 9 years by
DotheReggae.
Hello,
You can create your own custom ads by using this method: https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Unfortunately our theme does not use rotating ads. You can try to use adrotate for this
Thank you!
We are trying make this without plugin. Actually we can make a random image in header, but we don´t know how to insert a link for each of this. Can you help us?
Thanks in advance!
<div class="td-all-devices">
<script language='JavaScript'>
imagenes = new Array(2)
imagenes[0] = "
"
imagenes[1] = "
"
aleatorio = Math.random() * (imagenes.length)
aleatorio = Math.floor(aleatorio)
document.write(imagenes[aleatorio])
</script>
</div>
-
This reply was modified 9 years by
DotheReggae.
Hello,
Maybe this will help: http://www.htmlgoodies.com/beyond/javascript/article.php/3881826/JavaScript-Tutorial-Adding-Rotating-Images-to-Your-Web-Site.htm
Thanks.
Thanks Bogdan but with this script dont work, not appear any image…
We are having problems with Simple Ads Manager only with Header Ads, this is the reason of try this other method.
Thanks
I understand, but unfortunately you will have to find a solution online as we cannot provide any solution for untested plugins. The theme support is here to provide help regarding the theme. This is a custom implementation which is not covered by the theme support. We try to help out where we can but since we have not tested this in any way, there is little we can provide in this regard.
Sorry.
Ok is solved with Adrotate plugin. All is working fine through from Ads Theme Panel inserting Shortcode of ads or groups of Adrotate plugin.
Thanks for all!