Custom code (HTML) and embeds
Embed an external widget – for example a booking calendar, Calendly, a Mailchimp or Typeform form – with the Custom code (HTML) block. By default it runs in an isolated frame (sandboxed iframe), where scripts work; in inline sanitised HTML mode the code becomes part of the page, but scripts and iframes are removed.
Custom code (HTML)
Paste the embed code from the provider, then choose how it is shown:
- Sandboxed iframe (default) – scripts and forms work, but they are isolated from the page's cookies and structure. Use the iframe height in pixels so it gets enough room without a scroll bar. This suits most external widgets.
- Inline sanitized HTML – the code becomes part of the page, but the server cleans it: scripts, iframes and event handlers are removed. Meant for simple, static HTML; a script-based widget will not work this way.
Alignment and width are adjustable too.
When not to use Custom code (HTML)
Many embeds have a ready-made block that is simpler and more reliable:
- YouTube or Vimeo video – Video.
- Facebook, Instagram, X or LinkedIn post – Social post.
- Google Maps or OpenStreetMap – Map embed.
- Google reviews – Google reviews (in widget mode also with an external provider's code).
- Issuu publication or Demona flipbook – Flipbook (Issuu).
- Newsletter signup into the site's own list – Newsletter sign-up.
Tracking codes
Do not put tracking codes (for example Google Analytics, Meta Pixel) into a Custom code (HTML) block: add them on the Settings → Analytics tab, where they only run after the visitor's cookie consent.