Here is how to embed a newsletter widget on your website to allow users to subscribe to your studio's newsletter.
1st Step: Edit the widget type.
Go into Settings > Widget.
You are going to use the same code as for the calendar widget
> Choose the widget type 'Newsletter'
In the code below, widgetType: 'newsletter' replaces widgetType: 'calendar':
<div id="bsport-widget"></div>
<script src="https://cdn.bsport.io/scripts/widget.js"></script>
<script>
BsportWidget.mount({
parentElement: 'bsport-widget',
compactMode: false,
companyId: XXX,
widgetType: 'newsletter',
lang: 'en-EN',
defaultFilters:{
coaches:[],
establishments:[],
levels:[],
metaActivities:[],
}
});
</script>
2nd Step: Copy/Paste the widget on your website.
Copy/Paste the code above on your website.
Change the "XXX" of "companyID" to your bsport ID.
Users will now be able to subscribe to your studio's newsletter.
If you need more information on the widgets, please see this section !