Identifies the usage of `content_for "block"` inside the `capture` tag, as it's restricted to enforce static block rendering at its expected location. ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail In the following example, the `content_for "block"` tag is used inside of the `capture` tag: ```liquid {% capture x %} {% content_for "block", type: "text", id:"static-block-id" %} {% endcapture %} ``` ### ✓ Pass In the following example, the `content_for "block"` tag is outside the `capture` tag, rendering content as expected: ```liquid {% capture x %} Captured content {% endcapture %} {% content_for "block", type: "text", id:"static-block-id" %} ``` ## Options The following example contains the default configuration for this check: ```yaml CaptureOnContentForBlock: 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.