I am using cycle for a product slideshow in shopify. It works great, but I want to hide the pager if there is only one product image available.
Is there a function built into cycle for this?
if not, does anyone know how to return how many product images are available for that product in shopify so I can add a display none class if it's less than 2.
Any help is much appreciated. Thanks!
figured it out... only load cycle if there is an image 2.
{% if product.images[2] != undefined %}
<script type="text/javascript">
$('#prodImages').before('<div id="prodnav">').cycle({
fx: 'fade',
speed: 1500,
timeout: 5000,
pager: '#prodnav'
});
</script>
{% endif %}