Image code in header ad

Posted in: Newspaper
Post count: 37

I’m using these codes on the banner ads:

<div class="td-visible-desktop">
</div>

and


<div class="td-visible-phone">
</div>

I have disabled the view for tablet view (both horizontal and landscape).

However the first second of loading (on desktop or mobile), still both banners will show for a second and only then will the one not applicable disappear and the site will align.

Can this be done in a more efficient way? Without displaying two banners then hiding one?

See screenshot: https://www.screencast.com/t/p2TYluQvkE

Post count: 35449

Hi,

Please try this https://www.screencast.com/t/OkIJmImc1
<div class="td-all-devices">
<!-- Your NON AdSense code here - this ad will show on all devices -->
</div>

You can read more abut it here: -> https://forum.tagdiv.com/using-other-ads-non-adsense-ads/

Thank you.

Post count: 37

Hi,

I don’t want to show the same add on all devices.

The horizontal one for desktop …728×90.jpg

and … _300x250.jpg for the phone.

Right now both show for approx one second on both devices, then after showing up, the one which is not supposed to show disappears… which is not a very nice user experience.

What you told me is understood. I can deactivate ad code on some devices (in this case for tablets, which I did), but I still need to insert ad variations for the desktop/phone.

Please advise if this loading/choosing/arranging process can be done without this delay or at least without the display of both ads; e.g. could shortcodes do a better job than image URLs?

Thank you.

Post count: 35449

Hi,

I just check what you say, and normally this is not happening:
https://www.screencast.com/t/50NJxpBlrgF
See the results https://www.screencast.com/t/Ti338m5YfnDL
Please try to clear all cache.

Thank you.

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