There are several ways to add the widget’s code to the home page. The first of them is to use the auto installation option.
Here’s how you can do it:
Set your widget’s settings, save the widget and press Install.
2. Select the home page from the dropdown list of pages, the widget’s position from the Position list and press Add Widget.
3. You’ll be redirected to the screen that shows the widget’s position.
In case your product page is not listed in the list of pages, or you’re adding a widget that you’ve created directly at Elfsight Apps, not on Shopify, you can install the code via the pages editor.
This is how you can do it:
1.Go to Online Store, press Actions and select Edit Code.
2. Select product page template from the list of templates. The name of the template might differ from one theme to another, but most likely it will be called product.liquid.
3. Click on the template’s name and insert the installation code onto the page that opens.