Guides / Platforms / Shopify

Install guide

Add a DreamWidget to Shopify

Where it goesCustom Liquid section
What you needWorks on every Shopify plan with an Online Store 2.0 theme.

Shopify themes built on Online Store 2.0, which includes Dawn and every theme in the Shopify Theme Store today, let you add a Custom Liquid section anywhere in a template. That is all a DreamWidget needs: no app to install and no theme files to edit.

Widgets that work on Shopify

Every DreamWidget below works on Shopify, with the same steps.

  • Logo Showcase: A looping row of logos that keeps scrolling.
  • Video Showcase: YouTube, Vimeo, Twitch and TikTok in one browsable video wall.
  • YouTube Widget: Your YouTube channel or playlists as a gallery, kept current, played on your page.
  • Vimeo Widget: A Vimeo showcase, channel or member page as a gallery, played on your page.
  • TikTok Widget: Your TikTok videos on your site, from your connected account or pasted links, played on your page.
  • Twitch Widget: A Twitch channel's past broadcasts and uploads as a gallery, played on your page.
  • Countdown: A clock to a launch, a sale or a door opening, or an evergreen one per visitor.
  • Instagram feed: Your Instagram posts on your site, as a grid, a mosaic, a row or a list, kept current on their own, under your profile and a button to follow you on Instagram.
  • Showreel: Your photos and videos as a moving reel: cards glide to the center over a soft light ring, and visitors drag, swipe or click to open each one large.

Where they work best on a Shopify site

  • The home page, under the main banner. "As seen in" press logos or the brands you carry, right where a first-time visitor decides whether to trust you.
  • A product page template. Add the section to the product template and the video gallery shows on every product that uses it.
  • An about page. Your story on video, or the partners you work with.

Add a widget to a page

First, copy your code. In the DreamWidget editor, press Publish changes, then Copy code in the window that says your widget is live. The same code is in Settings, under Copy embed code. It is one short code; paste all of it, as copied.

  1. Customize your theme. Go to Online Store, then Themes, and press Customize.
  2. Add a Custom Liquid section. Open the page template, press "Add section" and choose "Custom Liquid".
  3. Paste and save. Paste your DreamWidget code into the Liquid code box and press Save.

The popup on every page

These float over the page instead of taking a spot in it, so they load once per page.

  1. Edit theme code. In Online Store, Themes, open the three-dot menu and choose "Edit code".
  2. Paste before the closing body tag. Open layout/theme.liquid, paste the code just above </body> and save.

If it does not show up

  1. There is no Custom Liquid section. Your theme is older than Online Store 2.0. Open the page in Online Store, Pages, press the Show HTML button in the editor and paste the code there instead.
  2. The widget shows on one product only. You edited a product's own template. Pick the default product template in the theme editor so every product gets it.
  3. It looks right on desktop and cramped on phones. Check the section's padding settings; the widget fills the width the section leaves it.

Check it worked

Open the published page in a private window. The widget draws within a second; if the box is empty, see Checking it worked. Changes you make in the DreamWidget editor reach Shopify by themselves; you never paste the code again.

Other platforms