Showing a page from the page builder on your website
A page you built in the page builder doesn't have to live only in your app. Show it on your website too — build it once, and it stays in step in both places.
Two ways to show it
- Drawn in your page
- The default. The page is drawn into your website's own page, so it takes on your site's fonts and sits in its layout. Buttons, pictures, designed blocks, your media, what's coming up and your latest posts all appear. Best for most sites.
- Your member website in a frame
- Your member website, framed at that page and sized to fit it, so it looks exactly as it does in the app — everything on the page included. It needs your member website, and it loads a whole app inside the frame.
Setting it up
- In the portal, go to Embed.
- For Widget, choose A page from the page builder.
- Choose the Page: your Home page, or any other page you've built.
- Choose How it is shown: drawn in your page, or your member website in a frame.
- Decide whether to show the page's title. Leave it off if your website already has a heading above it.
- Set the theme and colour source as for any other embed, check the preview, and copy the snippet for your website.
The snippet, the WordPress shortcode and the iframe are all offered, exactly as for the other widgets. A change to the page in the page builder reaches your website within a couple of minutes — you don't paste anything again.
What appears when it is drawn in your page
These parts of a page are drawn on your website, laid out as you laid them out — rows, columns, widths, spacing and all:
- The page's title and subtitle, shown, hidden and aligned as the page builder says (the embed's own
title="0"drops the whole heading if your site already has one). - Text (left, centred or right), and buttons with their second line and picture.
- Pictures, including ones that act as a link.
- Designed blocks — everything you made in the designer, with its own colours and fonts, including any Media, Events, Bundles and Collections blocks you put in it.
- Events as cards: Coming up (when you've chosen what each card shows, where its words sit, or the buttons) and a single chosen Event, with a Details button that opens the event's pop-up and a Sign up button that goes to the event's own page. Bundles, a single Bundle and Collections as cards, which link to your member website.
- Media lists and All content, Coming up left as it was, Next event, and Latest posts — the same lists your website's other widgets show.
- A single video from YouTube.
Where buttons and pictures go
A web address, an email or a phone number goes where you pointed it. A button that opens a screen or another page in the app opens that screen or page on your member website. If you don't have a member website, those buttons are drawn but don't go anywhere.
Fonts and the page's own look
- The page takes your website's fonts, so it reads as part of the site.
- The background and text colour you set on the page in the page builder belong to the app, so by default they are not applied to your website. Tick Use the page's own background and text colours if you want them.
- A framed page looks the way the app does: it follows your app's theme, light or dark, on the visitor's device, unless you give it colours of its own.
Colours: your website's, or your own
Choose where the page's colours come from under Colour source on the Embed page.
- Website's own colours
- The page reads your website: its text colour, the background behind the page (so it knows whether your site is light or dark) and your link colour, which becomes the accent. Buttons, cards, outlines and the colours inside your designed blocks all follow. Nothing about the colours is set twice.
- Custom colours
- Set the accent, text, background, and the colour of cards and panels yourself, as parameters on the snippet. Any browser colour works, including
var(--your-brand). - My app's brand colours
- The accent is your app's main colour, and the rest follows your visitor's light or dark setting.
Your website's stylesheet can also set the colours, with --hb-embed-accent, --hb-embed-text,
--hb-embed-background and --hb-embed-surface on the embed or anything around it. The settings, the
variables and the shortcode are described under Colours in
the embedding guide.
- Colours you set inside a designed block or on a button stay as you set them. A button you gave its own colours in the page builder keeps them; everything left to the palette follows the website or the parameters.
- Framed pages wear the colours too. Your member website is given the accent, text and background (set, or read from your website) and rebuilds its cards and buttons from them, the same way it does for your own brand. The visitor's light or dark setting in the app still decides the base underneath.
- Colours first need the member website's next update to reach a framed page; a page drawn into your own page changes straight away.
Pictures
Pictures you add with a Picture widget, a button's own picture, or in a designed block appear on your website too — in the page, and behind any block that uses one as a background. In the app they are also kept on each phone ahead of time, so the page looks right with no signal.
WordPress
With the Heartisan Embeds plugin (version 3.6 or later), paste a shortcode such as
[heartbeat widget="page" page="home"] into any page or post.
page is home or the page's id (the Embed page writes it for you). Add
mode="frame" for the framed version, title="0" to hide the page's title, and
page_colours="1" to use the page's own colours. For colours, add colors="site", or
colors="custom" with accent="", text="", background="" and
surface="" (version 3.7 or later). The plugin keeps a copy on your site, so the page still
shows if Heartisan is briefly unreachable.
Which pages can be shown
Your home page and every page you've built that isn't just for one audience. A home page you've made for a particular audience (for example, the worship team) isn't offered: it is chosen on each member's device, and a website's visitors haven't signed in.
If something isn't right
- "This page isn't available right now"
- The page has been deleted, is limited to one audience, or Heartisan couldn't be reached. Open the Embed page and pick the page again.
- The frame option does nothing
- Framing needs your member website. Until it's set up, the page is drawn in your page instead.
- A button doesn't go anywhere
- It points at a screen in the app and you have no member website, or it has no destination yet. Edit it in the page builder.
- My change isn't there yet
- Allow a couple of minutes. On WordPress, the plugin's cache is also held for the time set in its settings.
- A picture or block looks different from the app
- Anything the page builder draws only in the app (the banner, collections, notices) isn't on the website. Use the frame for an exact match.