Shopify theme check warning

Short description of issue

Theme Check shows “The variable ‘xyz’ is assigned but not used” even when variable is passed into snippets.

Reproduction steps

  1. Capture text with a Liquid variable.
  2. Pass that variable into a snippet (e.g., as a parameter).
  3. Run Shopify Theme Check.

Warning appears: The variable ‘xyz’ is assigned but not used.

Additional info

The variable is being used, but Theme Check doesn’t seem to recognize usage inside snippet calls. This creates 50+ warnings across the site (basically one for every button).

Is there a way to structure the code so Theme Check recognizes snippet usage, or should these be ignored/disabled as false positives?

I’m passing either text or divs/spans into the button.

What type of topic is this

Troubleshooting

Upload screenshot(s) of issue


[144] - Screenshot 24-September-2025.png