Embedding on your website
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.
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
- In the portal, go to Embed.
- Choose the widget you want.
- Set the options — how many items, columns, and for the live stream which buttons to show.
- Pick a theme: light, dark, or automatic (follows your visitor's preference).
- 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.
- Watch the live preview until it looks right, then copy the snippet for your platform.
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, orvar(--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.
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 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.
- Copy the JavaScript snippet from the Embed page.
- In your site editor, add a Custom HTML / Embed block where you want it.
- Paste, save and publish.
Option 2 — WordPress shortcode
Only if you use WordPress, and only if you'd rather not paste HTML:
- Install the Heartisan Embeds plugin.
- In its settings, enter your portal address and client ID once.
- Paste the short
[heartbeat …]shortcode into any page or post.
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.
- In Embed, choose the widget One event (with sign-up) and pick the event.
- 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.
- 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-supperwith 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.
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.
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.
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.
"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.
- 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.
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.
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.
- On the Embed page, scroll to Embed keys.
- Add a label (e.g. “Main website”) and the domains allowed to use it. Leave domains blank to allow any site.
- Create the key, then select it above so it's included in your snippets.
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
wwwcounts). - 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.