Skip to main content

DeprecatedGlobalAppBlockType

Deprecated

This check only exists in Theme Check v1.X.X.

Makes sure that theme sections are not using the deprecated @global block type to support or render app blocks in a section. Sections should use @app instead.


The following examples contain code snippets that either fail or pass this check.

{% for block in section.blocks %}
{% if block.type = "@global" %}
{% render block %}
{% endif %}
{% endfor %}

{% schema %}
{
"name": "Product section",
"blocks": [{"type": "@global"}]
}
{% endschema %}

{% for block in section.blocks %}
{% if block.type = "@app" %}
{% render block %}
{% endif %}
{% endfor %}

{% schema %}
{
"name": "Product section",
"blocks": [{"type": "@app"}]
}
{% endschema %}

Anchor to Disabling this checkDisabling this check

Disabling this check isn't recommended.


Was this page helpful?