Skip to content

Widget installation

Embedding the widget is two steps: add a container where it should render, and load the widget script. It works on any site — any CMS or none.

Place an element with the data-visamundi-widget attribute where the widget should appear:

<div data-visamundi-widget data-language="en"></div>

Add the widget script anywhere on the page. It auto-mounts every data-visamundi-widget container it finds:

<script src="https://requirements.visamundi.app/widget.js" defer></script>

That’s it — no API key required. For affiliate tracking, theming, and pre-selection, see Configuration.

Every [data-visamundi-widget] on the page is mounted automatically, so you can place as many as you like. For single-page apps that add containers after load, mount them manually:

<script>
VisamundiWidget.mount(document.querySelector('#my-container'), { language: 'fr' });
</script>

The widget renders inside a Shadow DOM, so its styles never clash with your site’s CSS (and vice versa).

Request API access

Tell us a little about your integration and we'll get back to you within one business day with a partner token.