Theme EditorSchema · 2024-05-19
Dynamic Shopify Section Settings Explained
Connect schema settings to real layout changes—checkboxes, selects, ranges, and conditional visibility.
Settings Are Just Variables
Every schema id becomes section.settings.id in Liquid. The theme editor writes values; your template reads them.
Checkbox: Show / Hide UI
{% if section.settings.show_vendor %}
<p>{{ product.vendor }}</p>
{% endif %}
Select: Layout Variants
{% case section.settings.layout %}
{% when 'grid' %}
<div class="grid">
{% when 'carousel' %}
<div class="carousel">
{% endcase %}
Range: Spacing Without CSS Files
Range settings output numbers—pipe them into inline styles or CSS variables.
style="padding-top: {{ section.settings.padding }}px;"
Richtext vs Plain Text
Use richtext when merchants need bold, links, or lists. Output inside a .rte wrapper. Use text + escape for short labels.
Combining with Metafields
Section settings control layout; metafields hold product-specific data. See Metafields Tutorial.
Build faster with HTMLToLiquid Converter
Convert static HTML into dynamic Shopify sections.
Open converter