Hi
Is it possible to display a Content Element (e.g. Text Block) only when viewed in small browser screens such as phones or tablets?
I want to replace a LayerSlide with a Blog Posts when viewed on a mobile or tablet portrait.
Kind regards
Duncan
Hey dweddell!
Yes that is possible. Try adding this to a codeblock element in your page.
<style type = "text/css">
@media (max-width:500px) { #layerslider_1 { display:none !important; } }
</style>
If that’s not working then send us a link to your page and we’ll take a look.
Best regards,
Elliott
Hi!
You could use our blog posts element beneath the LayerSlider and then change the CSS to this.
<style type = "text/css">
@media (max-width:500px) { #layerslider_1 { display:none !important; } .template-blog { display: block !important; } }
.template-blog { display: none; }
</style>
Best regards,
Elliott
Hi Elliott
Thanks again for your help…
cheers
Duncan