Rotate Header Ad with different link

Posted in: Newspaper
Post count: 9

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!

Post count: 22421

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!

Post count: 9

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>

Post count: 22421
Post count: 9

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

Post count: 22421

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.

Post count: 9

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!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.