section
Renders a section statically.
Its settings come from the section’s schema defaults or the theme’s settings_data. Use it in layouts and custom pages; templates list their sections in JSON instead.
Syntax
Section titled “Syntax”{% section 'name' %}Example
Section titled “Example”<p class="promo">{{ section.settings.text }}</p>{% schema %}{"name":"Promo","settings":[{"type":"text","id":"text","label":"Text","default":"Eid sale: 20% off"}]}{% endschema %}{% section 'promo' %}<div id="shopify-section-promo" class="shopify-section"><p class="promo">Eid sale: 20% off</p></div>Related
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

