How to create a global section

Hi @luigi-ib

You need to add preset settings in the schema so it will show in the list of sections in Theme Editor. Here’s how the section code will look like:


  

    ## {{ "sections.settings.title" }}
  

  

{% schema %}
{
  "name": "Gallery carousel",
  "tag": "section",
  "class": "spaced-section",
  "settings": [
    {
      "type": "text",
      "id": "title",
      "label": "Carousel title"
    }
  ],
  "presets": [
    {
      "name": "Gallery carousel"
    }
  ]
}
{% endschema %}
2 Likes