Hello,
I noticed a small inconsistency in some Shopify documentation in Theme Blocks “Rendering blocks without a wrapper”
In the example you will see this:
<{{ block.settings.tag }} class="heading" {{ block.shopify_attributes }}>
...
</{{ block.settings.tag }}>
{% schema %}
{
"name": "Heading",
"tag": null,
"settings": [
{
"type": "select",
"id": "heading_size",
"label": "Heading size",
"options": [
{
"value": "h3",
"label": "Small"
},
{
"value": "h2",
"label": "Medium"
},
{
"value": "h1",
"label": "Large"
}
]
}
]
}
{% endschema %}
But there’s no tag
setting defined in the schema. Instead, it should be:
<{{ block.settings.heading_size}} class="heading" {{ block.shopify_attributes }}>
...
</{{ block.settings.heading_size}}>
thank you