--- title: RequiredLayoutThemeObject description: >- Ensures that the theme.liquid layout file contains the required Liquid objects. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md --- ExpandOn this page * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md#options) * [Auto-correction](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md#auto-correction) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md#disabling-this-check) # RequiredLayoutThemeObject Makes sure that the [theme.liquid layout file](https://shopify.dev/docs/storefronts/themes/architecture/layouts) contains the required `{{ content_for_header }}` and `{{ content_for_layout }}` objects. *** ## Options The following example contains the default configuration for this check: ```yaml RequiredLayoutThemeObject: enabled: true severity: error ``` | Parameter | Description | | - | - | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](https://shopify.dev/themes/tools/theme-check/configuration#check-severity) of the check. | *** ## Auto-correction Theme Check can correct this error using the `--auto-correct` flag. When the flag is specified, Theme Check automatically adds any missing tags to `theme.liquid`. The `{{ content_for_header }}` object is added before the closing `` tag, and the `{{ content_for_layout }}` object is added before the closing `` tag. *** ## Disabling this check This check is safe to [disable](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration). *** * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md#options) * [Auto-correction](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md#auto-correction) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object.md#disabling-this-check)