Skip to content

block

The current block.

Available in: Section files (loops over section.blocks) and blocks/.

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.
Liquid
{% for block in section.blocks %}<div {{ block.shopify_attributes }}>{{ block.settings.text }}</div>{% endfor %}
Output
<div data-block-id="b1">Free delivery in Doha</div>

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?