block
The current block.
Available in: Section files (loops over section.blocks) and blocks/.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
block.id |
string | Block ID. |
block.type |
string | Block type. |
block.settings |
object | Block settings. |
block.shopify_attributes |
string | Attributes the editor needs; output them on the block’s wrapper. |
Example
Section titled “Example”{% for block in section.blocks %}<div {{ block.shopify_attributes }}>{{ block.settings.text }}</div>{% endfor %}<div data-block-id="b1">Free delivery in Doha</div>Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

