Duplicate Ads blocks

Posted in: Newspaper
Post count: 1

Hi.

The blocks of ads are very useful but I would like to be able to duplicate them to have a version for mobile and other one for desktop.

Now I can exclude but I don’t know how to do, for example, a type of advertisement in mobile and other different in desktop.

Can we duplicate or create new blocks of ads?

Post count: 22421

Hi,

Unfortunately the ad block does not have options to switch ads based on the device used. You can use css to hide the desktop ad on mobile and vice-versa but this will not work properly for adsense. On custom ads it has no impact. You can use a custom class on the row that contains the ad so you can target it with css. and then after you have classes for both ad blocks, you can use css like so:
.mycustomclass_1 .td-a-rec{
display: none!important;
}
add this code in the mobiles section of the advanced css box: http://screencast.com/t/ZSXr3qOUlKbh
and
.mycustomclass_2 .td-a-rec{
display: none!important;
}
and add this in the desktop section.
PS, you need you change the classes in the code to the ones you add to your rows.

I hope this helps.
Thank you!

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