In Shopify, when an app is installed then some code is auto-injected in the theme file which needs to be removed after uninstalling it. Below are some steps which will help you to remove the code manually:
From Shopify store admin, go to Online Store > Themes > Actions > Edit Code. Edit the theme code from which you want to remove the code and other injected snippets.
Example: For a clear understanding, let’s take Boundless a theme from which code needs to be removed.
In earch for keyword “aio” and delete all four below snippets appear as a result.
- 1. aio-script
- 2. aio_loyalty_snippet
- 3. aio_reviewform
- 4. aio_reviewlist
Open file theme.liquid under Layout and search for keyword “aio” and remove all the code associated with this keyword.
Now open file product.liquid under Templates then search for keyword “aio” and remove all the code associated with this keyword. Similarly, open file product-template.liquid under Sections then search for keyword “aio” and remove all the code if available.