When you installed Link Assistant we placed some files into your theme. These files power your analytics and detection. Our code does not affect your site and is safe to leave in. However it is good practice to remove unnecessary code from your theme.
Uninstalling theme files
- Open Shopify admin
- Navigate to Online Store > Themes
- For your live theme open the Actions menu and select Edit code
- Inside the code editor find and remove the following files
- Snippets/link-assistant.liqui.
- Assets/link-assistant.js
- Locate and the file Layout/theme.liquid
- Find and remove the following lines from the Layout/theme.liquid file
<script src="{{ 'link-assistant.js' | asset_url }}" data-inserted-by="Link Assistant"></script><div data-inserted-by="Link Assistant">{% include 'link-assistant' %}</div>Only remove these lines and no others. These lines were inserted by Link Assistant and are safe to remove. The first will be approximately half way down the page and the second near the bottom.
- Click Save and close the file
- Locate and the file Templates/404.liquid
- Find and remove the following line from the Templates/404.liquid file
<script type="text/javascript" data-inserted-by="Link Assistant">window._linkAssistant.track404()</script>
Only remove this line
- Click Save and close the file
- Close the code editor
You are now complete and Link Assistant has been removed from your theme.