Happy New Year people! Here's a new problem to start 2015 with...
I have a website that uses a Flexslider slideshow. This works well in desktop view, but I would like to hide slideshow on smaller screen sizes and replace it with a static image.
I thought I could put a conditional statement in my template:
<% if $ScreenWidth( < 600 ) %>
<p> screen is too small</p>
<% else %>
<div id="slider" class="typography row">
$FlexSlider(1,960,415)
</div>
<% end_if %>
But this is now dropping the rest of the page. Can anybody advise how I can express this in terms that SilverStripe can understand?
Thanks