--- title: OrphanedSnippet description: Identifies snippets that exist but are never referenced in the theme. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/orphaned-snippet md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/orphaned-snippet.md --- # OrphanedSnippet Identifies snippets that exist but are never referenced in the theme. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail This snippet exists but is never referenced. ## snippets/unused-snippet.liquid ```liquid
This content will never be displayed
``` ### ✓ Pass This snippet is properly referenced somewhere in the theme. ## snippets/used-snippet.liquid ```liquid
This content is used
``` ## templates/index.liquid ```liquid {% render 'used-snippet' %} ``` *** ## Options The following example contains the default configuration for this check: ```yaml OrphanedSnippet: enabled: true severity: warning ``` | Parameter | Description | | - | - | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](https://shopify.dev/themes/tools/theme-check/configuration#check-severity) of the check. | *** ## Disabling this check This check is safe to [disable](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration). ***