Makes sure that all static blocks have a distinct ID defined. ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail In the following example, there are two static blocks using the same ID: ```liquid {% content_for "block", type: "text", id: "static-block" %} {% content_for "block", type: "text", id: "static-block" %} ``` ### ✓ Pass In the following example, the two static blocks have distinct IDs: ```liquid {% content_for "block", type: "text", id: "static-block-1" %} {% content_for "block", type: "text", id: "static-block-2" %} ``` ## Options The following example contains the default configuration for this check: ```yaml UniqueStaticBlockId: enabled: true severity: error ``` | Parameter | Description | | --- | --- | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. | ## Disabling this check Disabling this check isn't recommended.