Modal Button Embed
Open your Gyde quiz in a modal overlay when any button or link on your storefront is clicked.
The Modal Button embed lets you attach the quiz to any existing button, link, or element in your Shopify theme. When a shopper clicks the element, the quiz opens in a modal overlay — no Theme Editor block needed.
How it works
The Gyde embed script (loaded via the Gyde Widget App Embed) scans the page for elements with a specific ID pattern. When it finds one, it automatically wires up a click handler to open the quiz as a modal.
The ID format is:
For example, for a quiz with handle skin-type-quiz, the ID is gyde_skin-type-quiz.
Get your element ID
- Open the quiz in the Gyde app.
- Go to Quiz → Share → Embed Guide.
- Select the Modal Button tab.
- Copy the element ID shown.
Add the ID to your theme
Add the ID to any button, link, or element. You can do this via:
Option A — Theme code editor (Online Store → Themes → ⋯ → Edit code)
Open the template or section file where you want the button and add the ID attribute:
Option B — Custom HTML section in Theme Editor
Add a Custom HTML or Custom Liquid section to any page and paste the button HTML directly.
Option C — Any existing button
If you already have a button or link in your theme that you want to trigger the quiz, just add the id attribute to it:
Examples
Requirements
The Gyde Widget App Embed must be enabled in your Theme Editor (Online Store → Themes → Customize → App embeds → Gyde Widget). The embed script loads via the App Embed and handles the click wiring automatically.