Website builder: HTML Blocks

The Custom HTML block lets you add your own HTML and styling to any page in the website builder. It’s useful for content that isn’t covered by the standard blocks, such as promotional banners, feature sections, comparison tables, or embedded maps and videos.Only Managers can add or edit Custom HTML blocks.

How to add a Custom HTML block

Use the Custom HTML block instead of the text block for HTML. The text block applies its own formatting, which can break your code. For example, a blank line can turn the rest of your HTML into plain text.
  1. Open the page in the website builder.
  2. Click Add a block.
  3. Select Custom HTML.
  4. Paste your HTML into the editor.
  5. Check the preview.
  6. Click Save.
The preview updates as you type, before you save. It uses your live website's styling and includes any styles from Custom scripts, so it shows how the block looks on your site.

Styling your block

Add a <style>   tag inside the block to style its content. To stop your styles from changing the rest of the page, wrap your HTML in an element with its own class and start every CSS rule with that class.
<div class="promo-banner">
  <h2>First month 50% off</h2>
  <p>Book online before the end of the month.</p>
</div>

<style>
  .promo-banner { padding: 24px; background: #f4f7fb; border-radius: 8px; }
  .promo-banner h2 { margin: 0 0 8px; }
</style>
For styles you want across the whole site, use Main settings > Developer > Custom scripts & CSS instead.

Embedding content from other sites

You can embed content such as a YouTube video or a Google Map with an <iframe>  . The embed only shows on your website if that site is allowed in your Content Security Policy settings. See Customise your Content Security Policy to add it.In the editor preview, embedded content shows as a placeholder.

What gets removed when you save

Storeganise removes some code from the block when you save, including scripts and forms. The editor shows a warning when this happens, so you can see what didn't make it onto the page.
To add a script to your website, such as a chat widget or tracking code, use Settings > Developer > Custom scripts & CSS. Scripts added there run on every page.Note: API keys and Add-ons can't create or change Custom HTML blocks. Only managers can edit them in the website builder.

Manager email notifications

All managers get an email when a Custom HTML block is added, changed, or removed. This lets your team spot any change to custom code on your website.To avoid an email on every save, Storeganise doesn't send another email when the same person changes the same page again within 30 minutes. A change by someone else, or on a different page, always sends an email.
Related articles
Website builder: Overview
Website builder: Creating a page
Website builder: Blocks
Website builder: Copying pages
Website builder: HTML Blocks