Combine ad td-visible classes

Posted in: Newspaper
Post count: 42

Hello, I’m using the article inline ad in the post template to insert my ads. I’d like to show an horizontal banner for all devices and a squared banner on phones. I’ve tried to mix the td-visible classes for the first banner, it works on phones but it breaks on other devices. Here’s the code:

<div class=”td-visible-desktop td-visible-tablet-landscape td-visible-tablet-portrait”>

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

</div>

How to solve the problem?

Post count: 35449

Hello,

For this you need to do set the classes in individual div like this:

Thank you!

Post count: 42

Sorry, I can’t see the example in your reply

Post count: 35449

Sorry, there was a code, please check this screenshot – https://i.imgur.com/WtpenSi.png

Post count: 42

Phew, not the best solution for maintenance. Please consider to implement the use of multiple classes in the next update. Thank you.

Post count: 27744

Hello,

You could consider using an ad inserter.

Thank you!

Post count: 42

Hello,
it’s what I used to do with the previous template, but I’d like to use an integrated solution into your template.

Post count: 42

Actually I’ve found a good solution: using a custom shortcode in inline ad box, so I can make changes in an efficient way. Could work in your opinion?

Post count: 27744

Hi,

Yes, it should work.

Thank you!

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