Skip to main content

How to remove liquid asset error in my store?

Fix missing snippet errors in your Shopify theme in minutes

Kelly at ABConvert avatar
Written by Kelly at ABConvert
Updated over 3 weeks ago

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.

  1. In your Shopify admin, go to Online Store > Themes

  2. Find your current theme and click Actions > Edit code

  3. Use the code editor search bar to look for abconvert

  4. Find any line similar to {% render 'abconvert-xxx-test' %}

  5. Remove the entire {% render ... %} line

  6. Save 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.

Did this answer your question?