--- title: ValidStaticBlockType description: Identifies when two static blocks are using the same ID source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md#disabling-this-check) # ValidStaticBlockType Makes sure that all static blocks are using valid types. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail In the following example, there is no corresponding `block-does-not-exist.liquid` file in the `blocks` directory of the theme: ```liquid {% content_for "block", type: "block-does-not-exist", id: "static-block-1" %} ``` ### ✓ Pass In the following example, `block-exists.liquid` exists in the `blocks` directory of the theme: ```liquid {% content_for "block", type: "block-exists", id: "static-block-1" %} ``` *** ## Options The following example contains the default configuration for this check: ```yaml ValidStaticBlockType: enabled: true severity: error ``` | Parameter | Description | | - | - | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. | *** ## Disabling this check Disabling this check isn't recommended. *** * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md#disabling-this-check)