---
title: ContentForHeaderModification
description: Identifies code that tries to parse content_for_header.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/content-for-header-modification
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/content-for-header-modification.md
api_name: liquid
---

# Content​For​Header​Modification

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.

***

## Examples

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

### ✗ Fail

The following code extracts content from `content_for_header`:

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

### ✓ Pass

Below is the only acceptable usage of `content_for_header`:

```liquid
{{ content_for_header }}
```

***

## Disabling this check

Disabling this check isn't recommended.

***
