Free shipping for orders over $20 Shipping Worldwide

slide


{% comment %} Set hero as enabled so JS is loaded at end of index.liquid. Also set variables to control JS settings and appearance. hero_full_height variable is also available in Header section. {% endcomment %} {% assign hero_full_height = true %} {% assign hero_parallax = true %} {% comment %} If hero is first section on homepage, add class that sets negative top-margin for alignment and force full height. {% endcomment %}
{% if section.blocks.size > 0 %}
{% for block in section.blocks %}
{% if hero_full_height %} {% if block.settings.image == blank %}
{% capture current %}{% cycle 1, 2 %}{% endcapture %} {{ 'lifestyle-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
{% else %} {% assign img_url = block.settings.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %} {{ block.settings.image.alt | escape }} {% endif %} {% else %} {% if block.settings.image != blank %}
{% assign img_url = block.settings.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %} {{ block.settings.image.alt | escape }}
{% else %}
{% capture current %}{% cycle 1, 2 %}{% endcapture %} {{ 'lifestyle-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
{% endif %} {% endif %}
{% unless block.settings.slide_subheading == blank %}

{{ block.settings.slide_subheading | escape }}

{% endunless %} {% unless block.settings.slide_heading == blank %}

{{ block.settings.slide_heading | escape }}

{% endunless %} {% unless block.settings.slide_cta == blank %} {{ block.settings.slide_cta | escape }} {% endunless %}
{% endfor %}
{% endif %}
{% schema %} { "name": "Slideshow", "max_blocks": 6, "settings": [ { "type": "checkbox", "id": "hero_home_auto", "label": "Auto rotate between slides", "default": true }, { "type": "select", "id": "home_hero_auto_speed", "label": "Slide changes every", "options": [ { "value": "5000", "label": "5 seconds" }, { "value": "7000", "label": "7 seconds" }, { "value": "10000", "label": "10 seconds" } ] } ], "blocks" : [ { "type": "slide", "name": "Slide", "settings": [ { "type": "image_picker", "id": "image", "label": "Image" }, { "type": "select", "id": "slide_text_color", "label": "Text color", "default": "is-dark", "options": [ { "value": "is-light", "label": "Light" }, { "value": "is-dark", "label": "Dark" } ] }, { "type": "text", "id": "slide_subheading", "label": "Subheading text", "default": "An introductory" }, { "type": "text", "id": "slide_heading", "label": "Heading text", "default": "Hero Banner" }, { "type": "text", "id": "slide_cta", "label": "Button text", "default": "Shop now" }, { "type": "url", "id": "slide_link", "label": "Slide link" } ] } ] } {% endschema %}