This article explains how to add Regiondo widgets to a Wix website, either with a Custom Element (no iFrame) or with a Custom Embed block.
1. Integrate with a Custom Element (no iFrame)
1.1. Benefits and limitations
- Wix lets you add custom elements, which are elements that aren’t available in the Wix editor. For details, see Wix’s article Wix Editor: Adding a Custom Element to Your Site.
- Custom elements have specific limitations.
- If your website meets all the requirements, a custom element has these benefits:
- No additional custom code is required.
- The element’s height adjusts automatically on your published site to avoid layout collisions on the page.
- Improved responsiveness on desktop and mobile.
- Improved performance (speed) compared with iFrame-based components.
- Product catalog links can be used for direct redirections.
- Any type of widget can be embedded, including the Button Widget.
1.2. Add the custom element
- In the Wix Editor, click Add Elements on the left side.
- Click Embed Code.
- Click Custom Element to add it to your page.
- Click Choose Source and enter the URL from the
srcattribute of the widget’s<script>tag. - Scroll down and enter the Tag Name. This is the HTML element of the widget type.
- Click Set Attributes > New Attribute.
- Enter
widget-idas the attribute name and the widget ID as the value. - Click Set.
1.3. Source, Tag Name and widget ID
Example: For this Catalog Widget code:
<product-catalog-widget widget-id="01e26f92-1a16-48b9-8c4a-c40c035a5e70"></product-catalog-widget> <script type="text/javascript" src="https://widgets.regiondo.net/catalog/v1/catalog-widget.min.js"></script>
you would enter:
-
Source:
https://widgets.regiondo.net/catalog/v1/catalog-widget.min.js -
Tag Name:
product-catalog-widget -
Attribute name:
widget-id -
Attribute value:
01e26f92-1a16-48b9-8c4a-c40c035a5e70
Source and Tag Name by widget type:
| Widget type | Tag Name | Source |
|---|---|---|
| Catalog Widget | product-catalog-widget |
https://widgets.regiondo.net/catalog/v1/catalog-widget.min.js |
| Product Widget | product-details-widget |
https://widgets.regiondo.net/product/v1/product-widget.min.js |
| Booking Widget | booking-widget |
https://widgets.regiondo.net/booking/v1/booking-widget.min.js |
| Button Widget | button-widget |
https://widgets.regiondo.net/button/v1/button-widget.min.js |
2. Add custom CSS to the Catalog Widget
- In the custom element, click Set Attributes > New Attribute and add:
-
Attribute name:
styles-template-id -
Value:
product-catalog-widget-styles
-
Attribute name:
- In the Wix Dashboard, go to Settings > Custom Code > Add Custom Code.
- Add the CSS template. For example:
<template id="product-catalog-widget-styles">
<style>
.regiondo-list-product-button {
background-color: red !important;
color: white !important;
border-radius: 12px !important;
}
.regiondo-list-product-button:hover {
background-color: green !important;
}
</style>
</template>- Select the page where the widget is integrated.
- Under Place Code in, select Head.
- Click Apply.
Important: The
<template id>must match thestyles-template-idvalue exactly.
3. Integrate with a Custom Embed block
3.1. Add the Custom Embed block
- Log in to Wix with your access data.
- In the dashboard, select Edit site to open the page where you want to add the widget.
- Select Page to open the page for the integration.
- Click the + button to add a block for the code.
- In the search bar, enter Custom Embed.
Edit the new block and add your Regiondo code.
- Adjust the block.
- Click Publish.
3.2. Make the integration responsive on mobile and tablet
- Click the mobile version, so the integration is responsive.
Your Regiondo code is now integrated into your website and responsive, and your offers can be booked right away.
Related articles