In order to add a Hapana Embed Widget to your Wix site, you will need to utilize the Wix custom element.
To ensure that it is added correctly to your page, please make sure to attach the element to your page or a strip. Certain methods of adding the element to the page will create an iFrame which will not work across all browsers.
Depending on your design, you can often add a strip element and then the Custom Element to the strip.
First add the strip to the page, then add the custom element. You can “attach” the custom element to the strip by dragging it over the strip until you are prompted to attach.
To Add an Embed Widget
- Open the page you are interested in adding the widget to in the Wix editor
- Add a strip to your page if not already present or attach direct to the page
- Select add icon > Embed > Custom Embeds > Custom element
- Attach the element to your strip
- Configure the Custom Element with the information below
Source
Click on Choose Source
- Server URL is the hapana_widget.js url https://widget.hapana.com/hapana_widget.js
- Tag Name as hapana-widget
Attributes
Then select Set Attributes
- Set the data-type attribute:
- Attribute name is data-type and value will depend on the widget you are trying to insert:
- classes
- packages
- privates
- workshop
- gift cards
- dashboard
- Set the widget-id attribute:
- Attribute name is widget-id and value is the id value from the Hapana Core – Edit Profile – Website Embed [WThMdleRZ0Rxxxxxxxxxxxxxxxxxxxxxx]
- Add a final attribute, the data-site-type attribute:
- Attribute name is data-site-type and value should be wix
- Attribute name is data-type and value will depend on the widget you are trying to insert:
* Please note that this attribute is required for the widgets to function on wix correctly
Optional
Optional attributes can be added to filter some widgets based on the instructor or session type (attributes instructor-id and session-type). See the documentation in Hapana Core – Edit Profile – Website Embed for details on each widget.