Documentation Index
Fetch the complete documentation index at: https://developer.dashsocial.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Use the Shoppable Gallery widget to embed your gallery on any page of your site without coding. It pulls in the media you’ve added to the gallery and displays it in either a grid or carousel layout.Before you start
Make sure you have the following:- Code access to the page where you want to embed the script
- Gallery ID: Retrieved from the URL in the Dash Social platform.
- Once your gallery is created in Dash Social, you can find its ID in the URL. Example URL:
-
%3Ais a URL-encoded colon (:)- Look for the number after
boardId: - In this case, the Gallery ID is
5448990
Embed the widget
Choose between Gallery Layout and Carousel Layout based on your design preferences.- Use Gallery Layout to show rows of media
- Use Carousel Layout for a scrollable horizontal strip
Gallery layout
Place the following code inside an element on the page you would like it to appear on, replace<gallery id> in line 5 with your Gallery ID:
Carousel layout
Place the following code inside an element on the page you would like it to appear on, replace<gallery id> in line 5 with your Gallery ID:
Widget parameters
These parameters control the behavior and appearance of the Shoppable Gallery widget. If you are interested in more advanced styling and customization, refer to the Widget Customization Guide:Widget Customization
Customize Dash Social widgets with CSS for fonts, colors, and layout tweaks.
| Parameter | Required | Applies To | Description |
|---|---|---|---|
data-gallery-id | Yes | Gallery / Carousel | Gallery ID to load. |
data-row-size | No | Gallery / Carousel | Number of images per row. Default: 3. |
data-row-limit | No | Gallery | Limits the number of rows displayed. No limit by default. |
data-gap-size | No | Gallery / Carousel | Spacing between images (pixels). Default: 2. |
data-mobile-row-size | No | Gallery / Carousel | Images per row on mobile. Defaults to data-row-size. |
data-mobile-gap-size | No | Gallery / Carousel | Spacing between images on mobile. Defaults to data-gap-size. |
data-call-to-action | No | Gallery / Carousel | Adds a hover CTA. Options: learn_more, shop_now, book_now. |
data-lazy | No | Gallery / Carousel | Loads images with loading="lazy" for performance. |
data-links-disabled | No | Gallery / Carousel | Disables the media popup when clicking an image. |
data-hide-popup-footer | No | Gallery / Carousel | Removes the Dash Social footer from the popup. |
data-high-res | No | Gallery / Carousel | Controls image resolution. 1 = high-res (default), 0 = low-res. |
data-media-format | No | Gallery / Carousel | Displays images in original aspect ratio/resolution. Overrides data-high-res. |
data-disable-product-new-tab | No | Gallery / Carousel | Default false. Set true to open product links in the same tab. |
data-scroll-disabled | No | Carousel | Hides scroll buttons. |
data-autoplay | No | Carousel | Auto-scrolls the carousel. true / false (default). |
data-infinite | No | Carousel | Wraps carousel to start/end. true / false (default). |
data-carousel-dots | No | Carousel | Shows navigation dots. true / false (default). |
data-show-price | No | Gallery / Carousel | Shows tagged product prices in the popup. Requires price + currency_code in your product feed. |
data-override | No | Gallery / Carousel | Required for localized product feeds. Matches the override value in your feed. |
Content Security Policy
If your site uses a Content Security Policy (CSP), you’ll need to allow the domains and MIME types used by the Shoppable Gallery Widget. This ensures scripts, images, and network calls load correctly.Why this matters
- Ensures the widget script can load safely.
- Allows image and video assets from approved Dash Social domains.
- Prevents CSP errors that block network calls or media loading.
Required CSP directives
Approved domains and MIME types
-
https://cdn.dashsocial.com
application/javascriptimage/jpegvideo/mp4
-
https://likeshop.me
text/htmlimage/pngimage/gifapplication/json
-
data:
application/font-woffimage/png
-
https://dashsocial-static.s3.amazonaws.com
image/jpegvideo/mp4
-
https://d1cka1o15bmsqv.cloudfront.net
image/jpegvideo/mp4
-
https://dashsocial.com
text/html
-
https://www.dashsocial.com
text/plain