Ads into header

Posted in: Newspaper
Post count: 12

Hello.
I need to have different ads into the header for different devices.
Exactly I need my own banner for all devices and an adsense banner for mobile.
I have tried by admin theme panel to add into header ad section to add this code:

<div class="td-visible-desktop">
Leo Constructions Lecce
</div>
<div class="td-visible-tablet-landscape">
Leo Constructions Lecce
</div>
<div class="td-visible-tablet-portrait">
Leo Constructions Lecce
</div>
<div class="td-visible-phone">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- [WL] Header Mobile Home -->
ADSENSE CODE
</script>
</div>

But It doesn’t work. He shows me only adsense banner for all devices.
Could you help me to solve?
Regards.

Post count: 7909

Hi,

Unfortunately you cannot use both codes(non-adsense and adsense) in the same spot. The theme ad system was designed to work with adsense so you can use paste it there without any div containers. We recommend div containers for non-adsense code.
Also you could try to use a plugin like AdRotate and use paste the shortcode in the ad spot where you want to display it.

Thanks!

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