Add the widget script
Add the Cevoid widget script once on pages where you render galleries or cards. You can place it in the<head>, before the closing </body> tag, or next to the widget container.
id="cevoid-container" and mounts a gallery or card based on the container’s data attributes.
Add a gallery container
Use one container per widget.Add a card container
For cards, usedata-card instead of data-gallery.
You can copy the gallery ID, card ID, or full embed code from the widget’s embed dialog in Cevoid.
Supported container attributes
| Attribute | Use |
|---|---|
data-gallery | Renders a gallery by gallery ID. |
data-card | Renders a card by card ID. |
data-post | Renders a single post when you have a post-specific embed. |
data-product | Filters a dynamic gallery by product. Use auto or a product ID. |
data-collection | Filters a dynamic gallery by collection. Use auto or a collection identifier. |
data-category | Filters a dynamic gallery by category. Use auto or a category identifier. |
data-brand | Filters a dynamic gallery by brand. Use auto or a brand slug. |
data-country | Overrides country detection when needed. |
data-market | Sets the Cevoid market used for language, product links, and default currency behavior. |
data-market-currency | Sets the market used for price and currency display. |
data-hide-prices | Hides product prices when set to true. |
Next steps
- Need contextual galleries: Dynamic Galleries
- Need market overrides: Programmatic Market Values
- Need dynamic page refresh or load-state events: Runtime Helpers