Howsit
I am trying to add a collection banner
I have added the following code into the theme.liquid to ensure that there is no gap between the image and the section above.
{% section ‘header’ %}
{%- if template contains ‘collection’ -%}
{% section ‘full-banner’ %}
{% endif %}
This then links to :
{% if section.settings.enable_full_banner %}
{% endif %}
{% schema %}
{
“name”: “Full-width Banner”,
“settings”: [
{
“type”: “checkbox”,
“id”: “enable_full_banner”,
“label”: “Enable Fullwidth Banner”,
“default”: true
},
{
“type”: “image_picker”,
“id”: “img”,
“label”: “Default image”
},
{
“type”: “number”,
“id”: “img_height”,
“label”: “Image height in px”,
“default”: 300
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
The problem I am having is that is only 1 image across all collection pages.
How can I make this a different image per collection or URL ?
Thanks so much !!