Blogs

Set up app after theme change

    In Shopify, when an app is installed then some code is auto-injected in the theme file which needs to be added after changing the theme. Below are some steps which will help you add the code manually:

    Step 1.

    In one tab, edit the theme in which you want to set up the app. For doing so, from Shopify admin go to Online Store > Themes > Actions > Edit Code.

    Step 2.

    Now, in another tab, edit the theme in which app is already installed and working.

    Example: For a clear understanding, let’s take Boundless a theme in which app needs to be set up and a Venture theme with working Aitrillion app.

     

    set-up-app-after-theme-change-1

     

    set-up-app-after-theme-change-2

     

    Step 3.

    Create below snippets in the theme Boundless (app set up required)

    • 1. aio-script
    • 2. aio_loyalty_snippet
    • 3. aio_reviewform
    • 4. aio_reviewlist

    set-up-app-after-theme-change-4

     

    Step 4.

    Now, copy the snippet-wise code from the Venture(app already set up) theme and paste it in the theme Boundless (app set up required).

     

    set-up-app-after-theme-change-3

     

    set-up-app-after-theme-change-5

    set-up-app-after-theme-change-6

     

    Step 5.

    After adding all the snippets in the theme correctly, open file theme.liquid in theme Boundless (app set up required) and add below-mentioned code:

    • Search for closing </head> tag in the file and paste the code above it
      {% include 'aio-script' %}
      <script src="//staticxx.s3.amazonaws.com/aio_stats_lib_v1.min.js?v=1.0"></script>

     

    set-up-app-after-theme-change-7

    • Search for closing </body> tag in the file and paste the code above it
      {% include 'aio_loyalty_snippet' %}

    set-up-app-after-theme-change-8

     

    Step 6.

    Open file product.liquid under Templates and paste the below code at the end of the file and Save it. This code will display the review form and list on the product page.

    {% include 'aio_reviewform' %}{% include 'aio_reviewlist' %}

     

    set-up-app-after-theme-change-9

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