All widgets work in the same way, after your page is loaded we'll look for specific markup either by element IDs or classes.
Step 1: Make sure the WODTogether Javascript and CSS is added to your site: https://wodtogether.zendesk.com/hc/en-us/articles/201434125-WODTogether-SDK-for-Javascript
Step 2: Add WODs Widget
To add a WOD widget (listing the WOD, pre/post workout, and even results/comments) include a <div> tag like the following (replacing the appropriate variables, shown in bold):
<div class="wodtogether_whiteboard_wods" data-gid="GYM ID" data-date="DATE" data-pids="PROGRAM IDS" data-heading="WHITEBOARD HEADING" data-inline_results="false"></div>
Option | Function |
---|---|
data-gid GYM ID |
You gym id. You can find this on the Gym Settings page. |
data-date DATE |
The date of the whiteboard
|
data-pids PROGRAM IDS |
One or more (comma separated) program IDs defining which program whiteboards to show. To show all programs, just remove this attribute. |
data-heading WHITEBOARD HEADING |
Custom headers for the WODs |
data-inline_results | Including this attribute with a value of "true" ( data-inline_results="true" ) will add a link to each WOD to show the results (and comments on those results) right in the page. Users can also comment on reslts directly on the page |
Comments