Skip to Content
shopify.dev docs
  • Apps
  • Themes
  • Custom storefronts
  • Marketplaces
    • Apps

      • GraphQL Admin API
      • REST Admin API
    • Themes

      • Liquid
      • Ajax API
    • Custom storefronts

      • Storefront API
      • Hydrogen
      • View all
  • Log in
  • Sign up
shopify.dev docs
  • Apps
  • Themes
  • Custom storefronts
  • Marketplaces
  • APIs and references
      • GraphQL Admin API
      • REST Admin API
      • Liquid
      • Ajax API
      • Storefront API
      • Hydrogen
      • View all
  • Themes
    • Overview
    • Create a theme
    • Customize a theme
    • Overview
      • Overview
        • Overview
        • Customize checkout.liquid
        • Checkout CSS
      • Overview
      • JSON templates
      • article
      • blog
      • cart
      • collection
      • customers/account
      • customers/activate_account
      • customers/addresses
      • customers/login
      • customers/order
      • customers/register
      • customers/reset_password
      • gift_card.liquid
      • index
      • list-collections
      • page
      • password
      • product
      • robots.txt.liquid
      • search
      • 404
      • Overview
      • Section schema
      • App blocks
      • Section assets
      • Integrate with the theme editor
      • Overview
      • Migrate
      • Overview
      • settings_schema.json
      • settings_data.json
      • Overview
      • Schema locale files
      • Storefront locale files
      • Overview
      • Input settings
      • Sidebar settings
      • Fonts
      • Deprecated settings
    • Overview
      • Overview
      • Install
      • CI/CD
      • Commands
      • Migrate
        • Overview
        • Commands
        • Install, upgrade, or uninstall
      • Overview
      • Shopify Liquid VS Code extension
      • Configuration
      • Commands
        • Overview
        • AppBlockValidTags
        • AssetPreload
        • AssetSizeAppBlockCSS
        • AssetSizeAppBlockJavascript
        • AssetSizeCSS
        • AssetSizeCSSStylesheetTag
        • AssetSizeJavascript
        • AssetUrlFilters
        • ContentForHeaderModification
        • ConvertIncludeToRender
        • DefaultLocale
        • DeprecateBgsizes
        • DeprecateLazysizes
        • DeprecatedFilter
        • DeprecatedGlobalAppBlockType
        • HtmlParsingError
        • ImgLazyLoading
        • ImgWidthAndHeight
        • LiquidTag
        • MatchingSchemaTranslations
        • MatchingTranslations
        • MissingEnableComment
        • MissingRequiredTemplateFiles
        • MissingTemplate
        • NestedSnippet
        • PaginationSize
        • ParserBlockingJavaScript
        • ParserBlockingScriptTag
        • RemoteAsset
        • RequiredDirectories
        • RequiredLayoutThemeObject
        • SchemaJsonFormat
        • SpaceInsideBraces
        • SyntaxError
        • TemplateLength
        • TranslationKeyExists
        • UndefinedObject
        • UnknownFilter
        • UnusedAssign
        • UnusedSnippet
        • ValidHTMLTranslation
        • ValidJson
        • ValidSchema
      • Overview
      • Getting started
      • Overview
      • Optimizing themes using Theme Inspector
    • Liquid Prettier Plugin
    • Lighthouse CI
    • Theme editor
    • Code editor
    • Theme Access app
      • Overview
      • Getting started
      • Command reference
      • Configuration reference
      • Troubleshooting
      • Overview
      • Test data
      • Transfer a development store
    • Collaborator accounts
    • Dawn
    • Overview
    • Sections and blocks
      • Overview
      • Platform
    • Accessibility
    • Theme editor preview inspector
      • Overview
      • Color system
    • Merchant stores
    • Version control
    • File transformation
    • Deceptive code
  • Integrating apps
    • Overview
    • Product variants
      • Overview
      • Show product recommendations
      • Overview
      • Support product media
      • Product media UX guidelines
    • Overview
    • Discounts
      • Overview
      • Support purchase options
      • Subscription UX guidelines
      • Deferred purchase option UX guidelines
    • Shop Pay Installments
    • Accelerated checkout
    • B2B
    • Unit pricing
    • Explicit currency formatting
    • Overview
    • Pickup availability
    • Overview
    • Email consent
    • Additional customer information
    • Add contact form
    • Overview
    • Support multiple currencies and languages
    • Detect and set a visitor’s optimal localization
    • Country and language selector UX guidelines
    • Overview
    • Navigation
      • Overview
      • Predictive search
      • Predictive search UX guidelines
      • Overview
        • Overview
        • Support storefront filtering
        • Storefront filtering UX guidelines
      • Tag filtering
    • Overview
    • Metadata
    • hreflang tags
    • robots.txt
    • Overview
    • Security badges
    • Captcha
    • Cookie compliance
    • Overview
    • Assessment
    • Migration guide
  • Troubleshooting
    • Overview
    • Requirements
      • Overview
      • Testing assets
      • Testing checklist
      • Submitting a theme
      • Theme Store listings
      • Common theme rejections
      • Overview
      • Prohibited actions
      • Managing theme reviews
      • Brand asset guidance
      • Updating your theme
      • Removing a theme
    • Theme revenue share
  • Log in
  • Sign up
Opens in a new windowOpens an external siteOpens an external site in a new window
  • Themes
    • Overview
    • Create a theme
    • Customize a theme
    • Overview
      • Overview
        • Overview
        • Customize checkout.liquid
        • Checkout CSS
      • Overview
      • JSON templates
      • article
      • blog
      • cart
      • collection
      • customers/account
      • customers/activate_account
      • customers/addresses
      • customers/login
      • customers/order
      • customers/register
      • customers/reset_password
      • gift_card.liquid
      • index
      • list-collections
      • page
      • password
      • product
      • robots.txt.liquid
      • search
      • 404
      • Overview
      • Section schema
      • App blocks
      • Section assets
      • Integrate with the theme editor
      • Overview
      • Migrate
      • Overview
      • settings_schema.json
      • settings_data.json
      • Overview
      • Schema locale files
      • Storefront locale files
      • Overview
      • Input settings
      • Sidebar settings
      • Fonts
      • Deprecated settings
    • Overview
      • Overview
      • Install
      • CI/CD
      • Commands
      • Migrate
        • Overview
        • Commands
        • Install, upgrade, or uninstall
      • Overview
      • Shopify Liquid VS Code extension
      • Configuration
      • Commands
        • Overview
        • AppBlockValidTags
        • AssetPreload
        • AssetSizeAppBlockCSS
        • AssetSizeAppBlockJavascript
        • AssetSizeCSS
        • AssetSizeCSSStylesheetTag
        • AssetSizeJavascript
        • AssetUrlFilters
        • ContentForHeaderModification
        • ConvertIncludeToRender
        • DefaultLocale
        • DeprecateBgsizes
        • DeprecateLazysizes
        • DeprecatedFilter
        • DeprecatedGlobalAppBlockType
        • HtmlParsingError
        • ImgLazyLoading
        • ImgWidthAndHeight
        • LiquidTag
        • MatchingSchemaTranslations
        • MatchingTranslations
        • MissingEnableComment
        • MissingRequiredTemplateFiles
        • MissingTemplate
        • NestedSnippet
        • PaginationSize
        • ParserBlockingJavaScript
        • ParserBlockingScriptTag
        • RemoteAsset
        • RequiredDirectories
        • RequiredLayoutThemeObject
        • SchemaJsonFormat
        • SpaceInsideBraces
        • SyntaxError
        • TemplateLength
        • TranslationKeyExists
        • UndefinedObject
        • UnknownFilter
        • UnusedAssign
        • UnusedSnippet
        • ValidHTMLTranslation
        • ValidJson
        • ValidSchema
      • Overview
      • Getting started
      • Overview
      • Optimizing themes using Theme Inspector
    • Liquid Prettier Plugin
    • Lighthouse CI
    • Theme editor
    • Code editor
    • Theme Access app
      • Overview
      • Getting started
      • Command reference
      • Configuration reference
      • Troubleshooting
      • Overview
      • Test data
      • Transfer a development store
    • Collaborator accounts
    • Dawn
    • Overview
    • Sections and blocks
      • Overview
      • Platform
    • Accessibility
    • Theme editor preview inspector
      • Overview
      • Color system
    • Merchant stores
    • Version control
    • File transformation
    • Deceptive code
  • Integrating apps
    • Overview
    • Product variants
      • Overview
      • Show product recommendations
      • Overview
      • Support product media
      • Product media UX guidelines
    • Overview
    • Discounts
      • Overview
      • Support purchase options
      • Subscription UX guidelines
      • Deferred purchase option UX guidelines
    • Shop Pay Installments
    • Accelerated checkout
    • B2B
    • Unit pricing
    • Explicit currency formatting
    • Overview
    • Pickup availability
    • Overview
    • Email consent
    • Additional customer information
    • Add contact form
    • Overview
    • Support multiple currencies and languages
    • Detect and set a visitor’s optimal localization
    • Country and language selector UX guidelines
    • Overview
    • Navigation
      • Overview
      • Predictive search
      • Predictive search UX guidelines
      • Overview
        • Overview
        • Support storefront filtering
        • Storefront filtering UX guidelines
      • Tag filtering
    • Overview
    • Metadata
    • hreflang tags
    • robots.txt
    • Overview
    • Security badges
    • Captcha
    • Cookie compliance
    • Overview
    • Assessment
    • Migration guide
  • Troubleshooting
    • Overview
    • Requirements
      • Overview
      • Testing assets
      • Testing checklist
      • Submitting a theme
      • Theme Store listings
      • Common theme rejections
      • Overview
      • Prohibited actions
      • Managing theme reviews
      • Brand asset guidance
      • Updating your theme
      • Removing a theme
    • Theme revenue share
  • Auto-correction
  • Disabling this check

UnusedSnippet

Identifies snippets that aren't used. For example, this check fails when Theme Check can't find a render tag that uses the snippet.

Auto-correction

Anchor link to section titled "Auto-correction"

Theme Check can correct this error using the --auto-correct flag. When the flag is specified, Theme Check automatically deletes the unused snippet file.

Disabling this check

Anchor link to section titled "Disabling this check"

This check is safe to disable.

On this page

  • Auto-correction
  • Disabling this check

Updates & News

  • Developer changelog
  • Partner blog
  • Engineering blog
  • UX blog

Community

  • Developer forum
  • Discord
  • Twitter
  • YouTube

Events

  • Unite
  • Meetups

Legal

  • Terms of Service
  • API Terms of Service
  • Privacy policy

Subscribe to receive updates from Shopify

Subscribe to receive updates from Shopify

Thanks! We’ll be in touch.

  • About Shopify
  • Shopify Plus
  • Careers
  • Investors
  • Press and Media