Embed content blocks

Modified on Fri, 20 Feb at 6:55 PM


Iframe embed content block


Add an iframe embed


  1. To add an iframe, add a new content block and select Embed iframe.
  2. Paste the iframe code, or url.
  3. Click Embed.


This is an example of an iframe code:

<iframe width="560" height="315" src="https://www.youtube.com/embed/umAOefbmOxI?si=9NlXbhaph9E1tBPp" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>


Edit iframe embed

  1. Click the settings icon at the top right of the block.
  2. In the 'Customise settings' menu, you can
    1. replace existing iframe code or url.
    2. change content area size.
      • Contained: The image gallery will be the same width as the text content block width.
      • Full-width: The image gallery will span the width of the browser.
      • Custom: Set your preferred width and alignment for the image gallery.
    3. change iframe content height.
      • Auto: The iframe will use a default fixed height.
      • Custom: Set your preferred height in px. This also a fixed height.

Set dynamic height to an iframe embed

For an iframe to automatically adjust its height to fit its content, you can use the script below.
This solution requires you to add a small JavaScript function to your page and slightly modify your <iframe> tag. Place the following code inside the <head> of your iframe.

<script type="text/javascript" src="https://cdn-assets.kontinentalist.com/kontinentalist-embed-script/script.min.js"></script>
This script will NOT work with third-party embeds like YouTube, SoundCloud, Vimeo, or Google Maps.


Next, learn to insert your own custom code for advanced content and interactions.




Last article: Multimedia content blocksNext article: Custom code content block



Lapis is built by Kontinentalist↗, a data storytelling studio in Singapore.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article