---
title: ValidStaticBlockType
description: Identifies when two static blocks are using the same ID
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type.md
---

# ValidStaticBlockType

Makes sure that all static blocks are using valid types.

***

## Examples

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

### ✗ Fail

In the following example, there is no corresponding `block-does-not-exist.liquid` file in the `blocks` directory of the theme:

```liquid
{% content_for "block", type: "block-does-not-exist", id: "static-block-1" %}
```

### ✓ Pass

In the following example, `block-exists.liquid` exists in the `blocks` directory of the theme:

```liquid
{% content_for "block", type: "block-exists", id: "static-block-1" %}
```

***

## Options

The following example contains the default configuration for this check:

```yaml
ValidStaticBlockType:
  enabled: true
  severity: error
```

| 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.

***
