--- title: MissingContentForArguments description: Ensures all required arguments are provided when rendering a static block. source_url: html: https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments md: https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments#disabling-this-check) # MissingContentForArguments When you render a static block, you must provide all required arguments defined in that block file's [LiquidDoc](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc). *** ## Examples The following examples contain code snippets that either pass or fail this check. Each example references this base block, which defines two parameters: one required and one optional (identified by square brackets). ## blocks/example-block.liquid ```liquid {% doc %} @param {string} some_str @param {number} [some_num] {% enddoc %} ``` ### ✗ Fail In the following example, the static block is being rendered without the required argument: ## sections/section.liquid ```liquid {% content_for 'block', type: 'example-snippet', some_num: 1 %} ``` ### ✓ Pass In the following example, the required argument is being provided, but the optional argument is not: ## sections/section.liquid ```liquid {% content_for 'block', type: 'example-snippet', some_str: 'text' %} ``` ### ✓ Pass In the following example, the required argument and the optional argument are being provided: ## sections/section.liquid ```liquid {% content_for 'block', type: 'example-snippet', some_str: 'text', some_num: 1 %} ``` *** ## Options The following example contains the default configuration for this check: ```yaml MissingContentForArguments: enabled: true severity: warning ``` | 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/missing-content-for-arguments#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments#disabling-this-check)