Skip to main content

How to integrate a widget in your website

In this tutorial we show how you can integrate a widget showing your asset on your own website.

Getting ready

How to generate the widget code

The steps to generate and integrate the widget are the following:

1. Go to My Assets or My Plans and select Edit widget

Just click on the three dots icon and select "Edit Widget".

2. Configure the widget properties

3. Set the layout design between Vertical or Horizontal

3. Set the style between Light or Dark

4. Change the label text and set the text and button color

5. Choose a default language which the asset or plan details will show

6. Save and generate the widget code

Code example

Here is a example of a code generated:

<div class="nvm-one-widget" nvm-did="did:nv:e51f0c4befe8bda1a5bc741f7b2cef2389a935119c5f9d06ecf0d0670659403f" nvm-wid="wid-801506b6-8936-4261-b183-43005b2e4352" nvm-cta-text="Tell me baby" nvm-cta-bg-color="#3e95ff" nvm-theme="dark" nvm-layout="horizontal"></div>
<script defer src="https://widgets.testing.nevermined.app/nvm-one-widget-loader.js"></script>

And here is how the widget looks like once integrated in a website:

Loading demo...

info

Send us via Discord your integration! We will be happy to share it with the community.