Blogs

Remove app code after uninstalling it

    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:

    Step 1.

    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.

    remove-code-1

     

    Step 2.

    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

    remove-code-2

    Step 3.

    Open file theme.liquid under Layout and search for keyword “aio” and remove all the code associated with this keyword.

    remove-code-3

    remove-code-4

     

    Step 4.

    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.

    remove-code-5

    Share
    Did this article answer your question?
    Share
    Book A Demo