Short description of issue
Theme Check shows “The variable ‘xyz’ is assigned but not used” even when variable is passed into snippets.
Reproduction steps
- Capture text with a Liquid variable.
- Pass that variable into a snippet (e.g., as a parameter).
- 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](https://global.discourse-cdn.com/shopifycommunity/original/2X/b/b37642df6372b3cb7dbba2ea62ffd858e8cea985.png)