Help home
Using the app
Heartisan Studio
Setup & settings
Back to heartisan.app
Client portal

Embedding on your website

For admins

You can show your events, media content, live stream, a form or a Give button on virtually any website — anywhere you can paste a piece of HTML, or add an iframe. There is a WordPress plugin, but it's a convenience, not a requirement.

The Embed page in the portal, showing the widget picker and the snippet to copy into a website.
The Embed page: pick a widget, copy the snippet.
Will it work on my site? If your site lets you add a custom HTML or embed block — WordPress, Wix, Squarespace, Weebly, GoDaddy, Webflow, Shopify, or a hand-built site — then yes. If it strips out scripts, use the iframe option, which works everywhere.

What you can embed

Events
Your upcoming events, including the featured-event hero with its trailer.
One event (with sign-up)
A single event shown as part of your page, with its sign-up form and payment, and Log in with your app account. Details below.
Media
Your media content — everything, or filtered to audio, video, past live streams or YouTube streams.
Live stream
The player, with optional “Watch on YouTube” and “Watch in the app” buttons.
Form
Any of your forms, filled in without leaving your site.
Give button
A button straight to your giving page, with your own wording.
A page from the page builder
Your home page, or any page you built in the page builder, drawn into your website or framed from your member website. Details.
Fundraiser
How far one or several fundraising goals have got, or several added up into one total, with a Give button. Details below.
Count
How many members, people on your app or groups you have, or how many are in one group. Only shows once you let websites show that number. Details below.
Notices
Your latest messages to everyone, newest first. Never a message sent to one person or a team.
Hero
As the top of your app's home screen: a stream that's live now, else your next featured event, else your newest media.

Building your embed

  1. In the portal, go to Embed.
  2. Choose the widget you want.
  3. Set the options — how many items, columns, and for the live stream which buttons to show.
  4. Pick a theme: light, dark, or automatic (follows your visitor's preference).
  5. Pick a colour source: your app's brand colours, colours you choose, or your website's own colours so it blends in. More on colours.
  6. Watch the live preview until it looks right, then copy the snippet for your platform.
Happy with your choices? Click Save as my defaults so the page opens configured that way next time.

Colours: your website's, or your own

An embed can wear your app's colours, your website's, or any you choose. Pick one under Colour source on the Embed page; it writes the right snippet for you. Underneath, each choice is a few settings on the snippet, so you can also change them by hand later.

My app's brand colours
The accent is your app's main colour (data-hb-colors="brand"). The default.
Website's own colours
data-hb-colors="site". Text takes your website's text colour and the embed sits straight on your page. A page from the page builder also reads the background behind it, so it knows whether it is on a light or a dark site, and takes your site's link colour as its accent. On WordPress, a block theme's primary colour is used for the accent of other widgets.
Custom colours
data-hb-colors="custom" with any of the four settings below. Any colour a browser understands works: #1c1c1e, rgb(28 28 30), a name, or var(--your-brand) from your own stylesheet.
Accent
data-hb-accent
Buttons, links and highlights. Works with every colour source and replaces the one it would have used.
Text
data-hb-text
Headings and body text.
Background
data-hb-background
Gives the embed its own coloured block. Leave it out and the embed sits straight on your page.
Cards and panels
data-hb-surface
The colour of cards, dialogs and panels. Leave it out and they are shaded from the background, so a set of colours never leaves white cards on a dark panel.

Set from your website's own stylesheet

If you'd rather keep colours in your site's CSS, set these on the element holding the embed or on any element around it (a section, or body to cover the whole site). They are used wherever the snippet doesn't set the same colour itself.

.whats-on {
  --hb-embed-accent: #0f766e;
  --hb-embed-text: #12332d;
  --hb-embed-background: #e7f5f1;
  --hb-embed-surface: #ffffff;
}

The colours are read when the embed is drawn. If your website changes its own colours afterwards, for example with a dark-mode switch, run HeartBeatEmbed.recolour() once the change is made and the embeds are drawn again in the new colours.

The iframe snippet can't see your website. A frame has no view of the page around it, so Website's own colours and your stylesheet's settings need the JavaScript snippet or the WordPress shortcode. The iframe snippet does take the accent, text, background and cards settings: they are written into its address.

On WordPress the shortcode takes the same settings: colors="site", or colors="custom" with accent="", text="", background="" and surface="" (plugin version 3.7 or later).

The Embed page with a page from the page builder chosen and Custom colours selected: boxes for accent, text, background and cards and panels, the page in the preview wearing them, and the snippet carrying them as settings.
Custom colours on the Embed page. The preview and the snippet update as you type.

The three ways to add it

Option 1 — the JavaScript snippet (recommended)

Two lines that render the widget natively inside your page, inheriting your fonts and sizing. This is the best-looking option and works on any site that allows custom HTML.

  1. Copy the JavaScript snippet from the Embed page.
  2. In your site editor, add a Custom HTML / Embed block where you want it.
  3. Paste, save and publish.

Option 2 — WordPress shortcode

Only if you use WordPress, and only if you'd rather not paste HTML:

  1. Install the Heartisan Embeds plugin.
  2. In its settings, enter your portal address and client ID once.
  3. Paste the short [heartbeat …] shortcode into any page or post.
The plugin doesn't do anything the snippet can't — it just saves you handling HTML, and keeps the settings in one place.

Option 3 — iframe

For website builders that strip out scripts. Copy the iframe snippet and paste it into an embed block. It includes a small line that keeps the frame's height right as content loads.

Use this on Wix, Squarespace, Weebly, GoDaddy and anywhere else the JavaScript option doesn't render.

One event, with sign-up and payment

The One event (with sign-up) widget puts a single event inside your own page, taking your page's fonts and colours: its picture or trailer, date and time, place, host, description, map, links, Add to calendar and Share. When the event takes sign-ups, visitors sign up right there with the event's own form, and pay by card if it has a ticket price, then come back to the same page.

  1. In Embed, choose the widget One event (with sign-up) and pick the event.
  2. Tick Include the sign-up if you want people to book there. Leave it off to show just the event's details. Choose a Title level (the heading size) to suit your page.
  3. Copy the JavaScript snippet, or for WordPress the shortcode [heartbeat widget="event" event="harvest-supper"] (plugin version 3.3 or later). The snippet names the event by its web address (harvest-supper) rather than a long code; the old code works too. Using the web address in a shortcode or a link on your site needs plugin version 3.4.
  • A designed page. If the event has a designed page it is drawn instead of the plain description, with its pictures, columns, buttons and any media you placed in it. The design's own styling stays inside the event. Needs the portal's current embed script, which every site gets automatically; on WordPress the cached copy refreshes within the time set in the plugin.
  • Prices. The same price rules apply: the visitor sees their own price as they choose and is charged exactly that.
  • Guests can always sign up with a name and email (or whatever the event's form asks) and pay as a guest. A guest never changes anyone's profile.
  • Signed-in members. A visitor with an account in your app can press Log in (or Create account, which opens your member web app to make one). They go to your member web app, sign in the way it offers (email and password, Google, Microsoft, Apple), approve, and land back on the same page. Their name, email, phone and any answers on their profile are filled in, and answers they give to profile questions are saved to their profile for next time, exactly as in the app. They see "Signing up as <name>" and, once signed up, can cancel a free place or one still awaiting payment. A paid, confirmed ticket is cancelled by you, who decide about any refund.
  • Leaving to sign in or pay. What they typed is kept. After paying, the page says "Confirming your payment…" until the confirmation arrives, then "Payment received".
  • Links to one event. On the events list, opening an event puts its web address in your page's address (?hbevent=harvest-supper, or /hbevents/harvest-supper with the WordPress plugin's events page), so people can share and bookmark it. Addresses made with the long code keep working.
  • Repeating events always show their next date, and places are counted per date.
  • A form section set to repeat for each person works here too: boxes for Adult 2, Child 1 and so on appear as the visitor changes the counts.
To offer Sign in, create an embed key whose Allowed domains list your website (for example www.mychurch.org), choose that key in the builder and use the snippet it makes. A key that allows any website never offers Sign in, by design: a sign-in is only ever sent back to a website you have named. Your member web app also needs to be set up. The sign-in is kept in the visitor's browser for 12 hours, only for signing up to events on your embeds. It is not their password or their app login.
Not offered yet: the one-event widget has no iframe version (a frame cannot send the visitor away to sign in or pay), and buying tickets for other people isn't in the widget. The preview in the dashboard shows the real form but signs nobody up.

A fundraiser on your website

Pick Fundraiser under Widget. It takes the same settings as the page builder's Fundraiser: which funds (leave it empty for every fund with a goal), whether several are shown each on its own or added up into one total, the look (bar, ring or big number), a heading, and which details and buttons to show. Only funds with Also show it on the giving page and in the app's Give section ticked are offered, so your website never shows a total your giving page doesn't.

A fundraiser embedded on a website as a big-number banner in the church's colour: Roof Appeal, £7,420 raised towards £12,000, a bar 61% full, 19 gifts and 70 days left, and a Give button.
The Big number look, in your app's brand colour. The words on the banner switch between dark and light to stay readable on whatever colour it is.

Give opens your giving page with that fund already chosen: your member website's when you have one, otherwise the giving page in your portal. A total of several funds opens it for the giver to choose.

A count on your website

Pick Count, then what to count and how it looks, as in the page builder's Count. How many people belong to your church is yours to share, so a count shows nothing on a website until you switch on Let websites show this number under its settings. Until then, the preview says so. Switching it off later hides it again on every website that has it. Two exceptions: a group people can find (and the number of groups) needs no switch, because anyone can already see it on your Groups screen; and a number one of your app's pages already shows is public already, so websites can show it whether or not the switch is on.

A private group (one that unlocks content, is for members only, or isn't published) is listed as (private). It shows nothing until you switch on Let websites show this private group's size, and the Embed page tells you first what that makes public: the group's name, how many are in it, how many joined this month and its milestones. People still can't find the group, see who is in it, or join it. See Private groups stay private.

The Embed page with Count chosen as the widget: Count set to Members and regulars, Look set to Big number, boxes for the words under the number and a heading, ticks for Show how many joined this month and Celebrate milestones, Round it unticked, Only show once it passes set to 0, and the Let websites show this number switch on. The preview shows a banner reading We just passed 50 people in our church family!
A count with Let websites show this number on. The preview shows the milestone banner because the number passed 50 this fortnight.
A page drawn into your website now draws its Hero, Notices, Fundraisers and Counts too. A count on that page shows there without the switch: being on one of your pages already makes it public.

"Happening now" on your events

An event that has started and not finished is marked Happening now with a pulsing dot, the same mark the app uses. You do not set anything: it is worked out from the event's start and end.

A church website's What's on page with the events list: the first card, Midweek Prayer Breakfast, has a Happening now pill at the bottom of its picture; the next card, Harvest Supper, does not.
The events widget on a church's own website. The event that is on right now carries the pill; the others show their date.
  • On a card it is a pill at the bottom of the event's picture. On the featured banner it replaces Featured; it appears under the title in an event's details and on a one-event page.
  • In the calendar it is a dot beside the event.
  • A repeating event, such as a weekly service, now stays in the list while it is on. Before, it dropped off the moment it started. A multi-day event, such as a conference, is marked for its whole run.
The same widget in Calendar view for October 2026: today's cell holds the Midweek Prayer Breakfast with a dot beside its time, and the 24th holds the Harvest Supper.
Calendar view: a dot beside an event that is on now.
The mark is worked out when the page is opened, so a page left open does not change until it is reloaded. Needs portal 1.0.268 and, for WordPress, plugin version 3.5.1.

What a shared event link looks like

When someone shares a link to an event on WhatsApp, Facebook, X, LinkedIn or iMessage, the preview shows that event's picture, title, date and place instead of your website's logo or a blank card. This works for links to:

  • your website's own event links (the events page's event links, such as /hbevents/harvest-supper, and a page of your own that shows one event, such as one with [heartbeat widget="event" event="harvest-supper"]);
  • your member web app (/event/harvest-supper).
  • On those pages the WordPress plugin replaces your SEO plugin's own preview tags (The SEO Framework, Yoast, Rank Math), which had been showing the site's logo and the events list. Plugin version 3.5 or later.
  • A one-off event's link no longer ends in a long ?start=… number; only a repeating event's link keeps it, to say which date is meant.
  • The one-event pages keep showing the event while Heartisan is offline, as the events list already did.
  • WhatsApp and Facebook keep their own copy of a preview for a while. For a link you have already shared, ask Facebook's Sharing Debugger to Scrape again.
The member web app's preview pictures (sent as a JPEG with their size, so WhatsApp and LinkedIn show them) and its tidier in-app links come with the next member web release.

Embed keys — locking it to your domains

An embed key lets you control which websites may display your embeds, withdraw access without touching your pages, and see when a key was last used.

  1. On the Embed page, scroll to Embed keys.
  2. Add a label (e.g. “Main website”) and the domains allowed to use it. Leave domains blank to allow any site.
  3. Create the key, then select it above so it's included in your snippets.
Embed keys are public. They appear in your page's source, like a maps key. Their protection is the domain allow-list, not secrecy — so always set the domains if you care.

You can disable or delete a key at any time; embeds using it stop working immediately.

Troubleshooting

  • Nothing appears — your site is probably stripping scripts. Use the iframe snippet.
  • It works in preview but not live — your embed key's domain list doesn't include the live domain. Add it (and remember www counts).
  • Colours look wrong — change the colour source, or set your own colours. If your site's own colours are ignored, you are probably using the iframe snippet, which can't see them.
  • The iframe is cut off — make sure you pasted the whole snippet, including the resize line.
  • Nothing listed — the widget only shows published items; check you have upcoming events or published media.