It recently came to my attention that the way Newspaper deals with ads isn’t strictly correct.
Basically, let’s say I have a 300×250 ad and I only want it to display on mobiles, I check ‘Disable on Desktop’ ‘Disable on Tablet Landscape’ and ‘Disable on Tablet Portrait’.
Now that’s all well and good, but it’s still loading the ad code, even if it’s not displaying it. Not only is this slowing page load down, but it’s also incorrectly counting impressions.
Is there a way around this, to achieve the same effect, but not have the code loading when it’s not visible?
Many thanks.
Hi,
The ad is not rendered only on load by a condition of size screen like you can see here: http://screencast.com/t/wfZijcWtk
On desktop or tablet the ad is not loaded if you have disable it from Theme panel.
Thanks!
Hi,
Yes, the system works only for Google Adsense, if you use other ad media you need to use this as is mentioned in the ad documentation: https://forum.tagdiv.com/ads/ and this hide the ads via CSS with display:none
<div class="td-visible-desktop">
desktop ad code
</div>
<div class="td-visible-tablet-l">
tablet landscape ad code
</div>
<div class="td-visible-tablet-tp">
tablet portrait ad code
</div>
<div class="td-visible-phone">
phones ad code
</div>
Thank for the message!
