RequiredLayoutThemeObject
Makes sure that the theme.liquid layout file contains the required {{ content_for_header }}
and {{ content_for_layout }}
objects.
Anchor to OptionsOptions
The following example contains the default configuration for this check:
RequiredLayoutThemeObject
enabledtrue
severity error
Parameter | Description |
---|---|
enabled | Whether this check is enabled. |
severity | The severity of the check. |
Anchor to Auto-correctionAuto-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 </head>
tag, and the {{ content_for_layout }}
object is added before the closing </body>
tag.
Anchor to Disabling this checkDisabling this check
This check is safe to disable.
Was this page helpful?