Skip to content

Theme Code Editor Setup

For Direct Code Integration on Shopify, you'll paste the snippet into a theme file using the Shopify code editor.

  1. Go to your Shopify Admin Panel
  2. Navigate to Online Store → Themes

Navigate to Themes

  1. Click the three-dot menu (...) on your active theme

Three-dot Menu

  1. Select Edit code

Edit Code Menu

Duplicate your theme first

Before editing code, duplicate your live theme (three-dot menu → Duplicate). Edit the copy, verify the widget, then publish. If anything goes wrong, your live theme is untouched.

Choose the Correct File

Widgets only work on the following liquid files (in the Sections folder):

.liquid File Widget Location
main-product.liquid Product pages
main-collection-banner.liquid Collection banner
main-collection-product-grid.liquid Collection product grid
header.liquid All pages (header)
footer.liquid All pages (footer)

Important

Widgets are only supported on the files listed above. Placing the snippet in other files may not render correctly.

Add the Code

  1. Open the chosen .liquid file

Theme Code Editor

  1. Locate where you want the widget to appear:
  2. For product pages: Add in main-product.liquid after the product description
  3. For collection pages: Add in main-collection-banner.liquid or main-collection-product-grid.liquid
  4. For header/footer: Add in header.liquid or footer.liquid

  5. Paste the complete code snippet

  6. Click Save

✓ You'll know it worked when the widget renders on the corresponding page in a mobile viewport, and the shimmer placeholder is replaced by the live widget.