Suscribe to our newsletter & get early
access to new content.

Overview

Schema blocks are the way to declare variables that later can be changed in the Shopify administrator. It uses Liquid for the declaration and inside the starting declaration can be more block declarations.

{% schema %} { "name": "Page Contact", "class": "contact-section", "settings": [ { "type": "text", "id": "section_title", "label": "Section Title", "default": "welcome" }, { "type": "textarea", "id": "section_heading_title", "label": "Section heading", "default": "COME AND GLOW WITH US" } ] } {% endschema %}

Should be declared after the </body> tag in the HTML file.

They can only be started in sections or snippets, but never in template files.