First, locate the script by visiting https://app.sugarwod.com/affiliate/settings/publishing#plugin, or reading through the Plugin and Installation article here.
To add the Plugin script to you Wix website:
- Login to your Wix website and select the Add (+) button
- Scroll down to the bottom of the list and select More
- In the Embeds section, select HTML/iframe
- Enter the Plugin script, making any color changes or settings needed
Example script:
<script>
window.sugarwod_options = {
id: "YOUR-GYM-ID-HERE",
color: "#e36c09",
button: "yes",
position: "bottom-right",
label: "WODs",
toggleClass: "sugarwod-toggle",
openOnPageLoad: "no", }
</script> <script src="//cdn.sugarwod.com/plugin/v1/sugarwod-plugin.js" async></script>
The options are:
id: the identifier for your gym, this is a required value. This can be found at the plugin link above.
color: the accent color used in the plugin. Any html color is valid.
button: should the circular "WODs" button be displayed, valid values are "yes" or "no". Default is "yes".
position: where on the web page the button should be display, valid values are "bottom-left" or "bottom-right". Default is "bottom-right".
label: the label for the "WODs" button. Default is "WODs".
toggleClass: any element on your webpage that has this CSS class will act as a open/close toggle for the SugarWOD plugin. For example, add this class to a menu item that you want to open SugarWOD. Default is "sugarwod-toggle".
openOnPageLoad: if "yes", the workout whiteboard will open immediately when the page and plugin load. Default is "no".
Comments
0 comments
Article is closed for comments.