Skip to main content

ContentForHeaderModification

Identifies code that tries to parse content_for_header.

You shouldn't rely on the content of content_for_header as it might change in the future, which could cause your Liquid code behavior to change.


The following examples contain code snippets that either fail or pass this check.

The following code extracts content from content_for_header:

{% assign parts = content_for_header | split: ',' %}

Below is the only acceptable usage of content_for_header:

{{ content_for_header }}

Anchor to Disabling this checkDisabling this check

Disabling this check isn't recommended.


Was this page helpful?