td-visible-phone for ads not working on ADS

Posted in: Newsmag
Post count: 47

Hi, on the iphones the theme is correctly responsive except the ads when I use the td-visible-phone class. From the CSS I see the class is checking the resolution via @media (max-width: 767px), which does not fit the retina resolution.

The need is this: on mobiles (included iphones) I want to show 300×200 banners. On desktop I want to show a strip, a leaderboard.

Which is the right solution you suggest?

Post count: 6535

Hi

The ad system it’s tested and works fine. For more details about banner ads usage with our theme please check our documentation here: https://forum.tagdiv.com/newsmag-using-other-ads/ To load different banner ads you can use this code:

<div class="td-visible-desktop">
<a href="#"><img src="image-for-desktop"/></a>
</div>
<div class="td-visible-phone">
<a href="#"><img src="image-for-mobile"/></a>
</div>

This css will display a image for desktop and a different image for mobile, including iPhone.

Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 47

Sorry, after some more tests I realize I’ve made a mistake. It works fine. Regards

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