carousel - How to make product image slideshows in Shopify? -
i'm working on shopify website, , need create couple of image slideshows (for mobile layout only):
(1) 1 product collection
(2) 1 thumbnails of product on product page itself
anybody have idea how accomplish either? thanks.
you're going need @ image loop: https://docs.shopify.com/themes/liquid-documentation/objects/image
nb - images assigned product variants, you'd like:
{% image in product.images %} <img src="{{ image.src | img_url: 'compact' }}" alt="{{ image.alt | escape }}"> {% endfor %}
then you'd need make sure js / jquery pugin wraps around html. collection images - you'd same, output images in collection.
{% product in collection.products %} <img src="{{ product.featured_image.src | img_url: 'large' }}" alt="{{ product.featured_image.alt | escape }}"> {% endfor %}
for cool you're going need javascript. liquid of renders html - you'll need javascript make stuff whizzy slideshows. if you're familiar jquery plugins - you'd make shopify output required html work plugin.
have looked @ timber? great place start: http://shopify.github.io/timber/
Comments
Post a Comment