How to integrate a widget in Shopify
First create your widget in the ReviewForest dashboard and copy its code, as described in Install a ReviewForest widget. In Shopify you add the code with a Custom Liquid section in the theme editor, without touching your theme’s code.
-
In your Shopify admin, go to Online Store → Themes and click Edit theme next to your current theme.
-
Choose where the widget goes:
- Floating badge: use the Footer area in the list on the left. Sections there appear on every page that shows your store’s footer.
- All other widgets: pick the page in the menu at the top, for example Home page, and go to the spot in the list where the widget should appear. The theme editor works with templates: a section you add to a product or page template appears on every product or page that uses this template.
-
Click Add section there and choose Custom Liquid.
-
Paste the widget code into the Liquid code field.
-
Click Save.
Most themes, including Shopify’s free themes like Horizon and Dawn, have a Custom Liquid section. If yours doesn’t, ask the theme’s developer, or use the way below for a floating badge.
Floating badge directly in theme.liquid
Section titled “Floating badge directly in theme.liquid”-
Go to Online Store → Themes, click the … button next to Edit theme and choose Edit code.
-
In the Layout folder, open theme.liquid.
-
Paste the widget code right before the closing
</body>tag near the end of the file. -
Click Save.