Once you install the Kiwi Size Chart & Recommender app, the Kiwi script will load on every page of your Shopify store by default. Some users prefer to load the script only on the pages where they have a size chart or recommender. You can disable this default behavior and manually place the Kiwi code only on the desired pages.
Here's How to Manually Load Charts on Specific Pages Without Kiwi Script on Every Product Page:
- Navigate to "Styles & Settings."
- Go to Advanced > Others and toggle on the "Disable Default JavaScript."
- Don't forget to click "Save Settings" at the top right.
- Add the following code right after the closing
</body>
tag in your theme.liquid file:
{% assign t = template | prepend: '/' | append: '.' %}
{% if t contains '/product.' %}
<script src="https://cdn.static.kiwisizing.com/SizingPlugin.prod.js"></script>
{% endif %}
Example of placement:
Make sure to save your changes!
If you need further help, please don’t hesitate to let us know. We’re here to assist you!