Removing Referral Code Snippets in Shopify

Learn how to remove the small code snippet in your Shopify theme

Retainful uses a small code snippet to render the "Launcher" widget of the Referral program. This is used only when you enabled and used the Referral program in your Shopify store.

If you have not used / enabled the Referral program, then you can ignore the following steps

This guide will show you how you can remove the code snippet from your Shopify theme folder

NOTE: It is not necessary to remove as it does not affect any functionality. When you uninstall the Retainful app, it loses the ability to make any modifications like deleting the snippet in the theme folder. So the code snippet has to be removed manually.

  1. Login to your Shopify admin dashboard and go to Online store -> Themes section

  2. Click on the three dots to expand the "Customize" button to see the additional options

  3. Click on the Edit code option

You will now see the Liquid files of your theme.

  1. Edit the theme.liquid file

  2. Scroll to the bottom of the page

  3. Before the </body> tag, you will see the following line:

{% include 'retainful-initializer' %}
  1. Delete that one line

  2. Save the file.

  3. On the left hand panel, search for "retainful-initializer" file.

  4. You will see the file "retainful-initializer.liquid" under the Snippets section

  1. Delete the file by clicking the "delete icon".

Last updated