Skip to main content
All CollectionsSettingsWidgets
Integrate a newsletter widget on your website
Integrate a newsletter widget on your website

This article aims to show you how to integrate a newsletter widget on your website.

Kevin Bagayoko avatar
Written by Kevin Bagayoko
Updated over a year ago

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>

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 !

Did this answer your question?