How to stop a section duplicate content on another page

Hi,

I have created a section for a simple banner on a collection page, when I put the section on another page it has the same image. Is there something I can add to the code so I don’t have to duplicate the section?

Code here:


{% schema %}
  {
    "name": "Desktop Mobile Image 2",
    "settings": [
{
"type": "image_picker",
"id": "image",
"label": "Banner Image"
},
{
"type": "image_picker",
"id": "mobile_image",
"label": "Banner Image"
},
{
"type": "url",
"id": "image_link",
"label": "Image link"
}
],
  "presets": [
    {
      "name": "Desktop Mobile Image 2",
      "category": "Content"
    }
  ]
}
{% endschema %}

{% stylesheet %}
{% endstylesheet %}

{% javascript %}
{% endjavascript %}

Thanks

Hi @JKIRK , this problem is solved with Shopify 2.0. So best way is to switch your code to use Shopify 2.0 (json templates), another way is to create another section. Or use the existing one - but you’ll have to use may if conditions and create additional elements in your schema - so anyway you’re duplicating it. :slightly_smiling_face: