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.
Login to your Shopify admin dashboard and go to Online store -> Themes section
Click on the three dots to expand the "Customize" button to see the additional options
Click on the Edit code option
You will now see the Liquid files of your theme.
Edit the theme.liquid file
Scroll to the bottom of the page
Before the </body> tag, you will see the following line:
Delete that one line
Save the file.
On the left hand panel, search for "retainful-initializer" file.
You will see the file "retainful-initializer.liquid" under the Snippets section
Delete the file by clicking the "delete icon".
Last updated