If you see this error in your storefront:
Liquid error (layout/theme line xxx): Could not find asset snippets/abconvert-xxxx-test.liquid
It means your theme is trying to load an ABConvert snippet that no longer exists. This happens when the snippet file is removed but the theme code still references it.
Why this happens?
When you run a test, ABConvert adds two things to your theme:
Script snippet: A file named like
abconvert-xxxx-test.liquid
Code reference; A line in your
theme.liquid
file such as{% render 'abconvert-xxx-test' %}
These work together to load our A/B testing scripts in your store.
If the snippet file is deleted but the code reference remains in your theme, this error will appear. This most often happens when a theme update is made while a test is still running.
For shipping tests, ABConvert loads scripts differently via our embedded app blocks. Learn more here: What does the ABConvert embedded app blocks do?
How to remove the error
You can fix this in a few minutes by removing the snippet reference from your theme code.
In your Shopify admin, go to Online Store > Themes
Find your current theme and click Actions > Edit code
Use the code editor search bar to look for
abconvert
Find any line similar to
{% render 'abconvert-xxx-test' %}
Remove the entire
{% render ... %}
lineSave and refresh your storefront to confirm the error is gone
What is next
Normally, ABConvert automatically removes all snippet files and code references when you close or pause a test from the dashboard.
If you experience this error and none of the causes above apply, please contact our support team via the support widget in your dashboard so we can investigate.
FAQ
Will removing this snippet break my theme?
No. The snippet only loads ABConvert test code. Removing it will not affect your storefront’s functionality.
Can this happen after a theme update?
Yes. If your updated theme includes a reference to an ABConvert snippet but not the snippet file itself, the error will appear. To prevent this, try to keep the same theme during an active test and schedule theme updates between tests.