Installing widget in iframe
If the only possibility to install an Elfsight widget to your website is via iframe, this article will come in handy for you. Here, we are going to describe how to convert your widget installation code into iframe.
Converting installation code into iframe format
Get a link to your widget
First, you will need a direct link to your Elfsight widget. Find the widget you'd like to install in iframe in your dashboard and click Install: Switch the tab to Share Link. Here is the link we'll need for the next step:
Create an iframe
Use the following code:
<iframe src='SHARE_LINK' width='100%' height='1000' frameborder='0'></iframe>
Replace SHARE LINK in the code above with your own link.
Adjust the size
Adjust the height parameter to match the height of your widget:
The final version of the code would look like this:
<iframe src='https://widget.elfsig.ht/275fdadf-217a-4c14-b434-a71acc71ebf4' width='100%' height='700' frameborder='0'></iframe>
Voila! You have converted your installation code into iframe format. Now you just need to add it to your website.