Revolution slide inside custom ad box

Posted in: Newspaper
Post count: 5

Hello,
I need to show different slides depending on the device used. Slider revolution element by td composer doesn’t have show / hide option depending on the device.

I tried to use ad custom box by the shortcode but it doesn’t appear. I used the following code

<div class=”td-visible-desktop”>
[rev_slider alias=”slider-1200×1400″][/rev_slider]
</div>
<div class=”td-visible-tablet-landscape”>
[rev_slider alias=”slider-1200×1400″][/rev_slider]
</div>
<div class=”td-visible-tablet-portrait”>
[rev_slider alias=”banner-mobile-1″][/rev_slider]
</div>
<div class=”td-visible-phone”>
[rev_slider alias=”banner-mobile-1″][/rev_slider]
</div>

I also tried to add different slides by Raw HTML element in TD COMPOSER but nothing!

However using the following code into sidebar by custom HTML widget
<div style=”margin-bottom:30px”>
[rev_slider alias=”finestrella-sn”][/rev_slider]
</div>
<div style=”margin-bottom:30px”>
[rev_slider alias=”finestrella-dx”][/rev_slider]
</div>
It appear.
Can you help me?

Post count: 5

I forgot … my need is to add the slides before the title and in the middle of the article

Post count: 35449

Hi,

I just make a test to set a rev slider only on desktop inside a single post template from tagDiv Cloud Library using tagDiv Composer and is working, but if you want to display it only on some type of devices, then you’ll need to use some classes just like in your example -> https://i.imgur.com/dTiSrAI.png

Thank you!

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