--- title: DeprecatedGlobalAppBlockType description: Checks whether a theme is using the deprecated global app block type. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-global-app-block-type md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-global-app-block-type.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-global-app-block-type.md#examples) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-global-app-block-type.md#disabling-this-check) # DeprecatedGlobalAppBlockType Deprecated This check only exists in Theme Check `v1.X.X`. Makes sure that theme sections are not using the [deprecated](https://shopify.dev/changelog/removing-the-global-block-type-in-favour-of-the-app-block-type-in-theme-sections) `@global` block type to support or render app blocks in a section. Sections should use [`@app`](https://shopify.dev/docs/storefronts/themes/architecture/blocks/app-blocks) instead. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail ```liquid {% for block in section.blocks %} {% if block.type = "@global" %} {% render block %} {% endif %} {% endfor %} {% schema %} { "name": "Product section", "blocks": [{"type": "@global"}] } {% endschema %} ``` ### ✓ Pass ```liquid {% for block in section.blocks %} {% if block.type = "@app" %} {% render block %} {% endif %} {% endfor %} {% schema %} { "name": "Product section", "blocks": [{"type": "@app"}] } {% endschema %} ``` *** ## Disabling this check Disabling this check isn't recommended. *** * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-global-app-block-type.md#examples) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-global-app-block-type.md#disabling-this-check)