Also need same solution, can you guide?
1 Like
Hi, the images are not showing up at all when I tried this. Can you help?
1 Like
thanks but i can’t see that section can you show me!
yes please share both section code so i will update
{% for block in section.blocks limit: 1 %}
{% endfor %}
AND
{% for block in section.blocks limit: 1 %}
{% endfor %}
1 Like
Thanks for code can you please update
Desktop
{% for block in section.blocks limit: 1 %}
{% endfor %}
{% schema %}
{
"name": "YX Mobile Banner",
"class": "yx-mobile-banner-section",
"max_blocks": 1,
"blocks": [
{
"type": "image_picker",
"name": "Mobile Banner Image",
"settings": [
{
"label": "Mobile Banner Image",
"id": "yx_image_picker",
"type": "image_picker"
}
]
}
],
"presets": [
{
"name": "YX Mobile Banner",
"category": "Home",
"blocks":[{"type" : "image_picker"}]
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
Mobile
{% for block in section.blocks limit: 1 %}
{% endfor %}
{% schema %}
{
"name": "YX Desktop Banner",
"class": "yx-desktop-banner-section",
"max_blocks": 1,
"blocks": [
{
"type": "image_picker",
"name": "Desktop Banner Image",
"settings": [
{
"label": "Desktop Banner Image",
"id": "yx_image_picker",
"type": "image_picker"
}
]
}
],
"presets": [
{
"name": "YX Desktop Banner",
"category": "Home",
"blocks":[{"type" : "image_picker"}]
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
Hello, it seems that both banners are displaying now. Thanks!
