theme.liquid is the layout that wraps every storefront page. You paste the widget snippet into it.
Before you start
- Your website widget. Kelu makes one for you when you create a knowledge base. Its Install tab shows these steps with your widget id and key already in the code.
- Your store on the widget’s Sites it works on list (Install tab), for example
https://yourstore.myshopify.comand your custom domain.
Add the widget
Open the theme code editor
In Shopify admin, go to Online Store → Themes. On your live theme, open the … menu and choose Edit code.
Paste the snippet before the closing body tag
theme.liquid
YOUR_WIDGET_ID and kl_pk_... with its values.Checkout pages do not use
theme.liquid, so the widget does not appear there.