Hero
The Hero is the first section of a page. It holds the main headline, a short text, up to two buttons and a large photo.
In the admin: a page’s Content, block Hero
What to put in it
Section titled “What to put in it”- Headline is the page’s main message. Keep it short: it is set in very large type.
- Subheadline adds one or two sentences. Leave a blank line between paragraphs.
- Announcement (shown above the headline) is the small pill above the headline, with its own link. Leave both empty to hide it.
- Primary button text and Link make the dark button. Secondary button text and Link make the lighter one next to it.
- Image caption shows in a chip at the bottom corner of the photo.
- Center the layout centres the text and makes the headline a little smaller. The Pricing and Contact pages use it.
| Field in the admin | Kind | Notes |
|---|---|---|
| Headline | Short text | Required. |
| Subheadline | Text | |
| Primary button text | Short text | |
| Primary button link (starts with /, https://, mailto:, tel: or #) | Short text | |
| Secondary button text | Short text | |
| Secondary button link (starts with /, https://, mailto:, tel: or #) | Short text | |
| Image | Image | |
| Image caption (shown on the photo) | Short text | |
| Announcement (shown above the headline) | Short text | The announcement pill above the headline. |
| Announcement link (starts with /, https://, mailto:, tel: or #) | Short text | Where the announcement pill links to. |
| Center the layout | Tick box | On for the Pricing and Contact pages. |
| Section ID (lowercase, for links like /#pricing) | Short text |
Change the photo
Section titled “Change the photo”- Open the Hero block.
- Under Image, select the picture and choose Replace, or remove it and choose a new one.
- Add alt text that says what the photo shows.
- Publish the page.
The photo is cropped to a wide strip on large screens and to a square on narrow ones. Choose a picture whose subject is in the middle. See Preparing images.
When a field is empty
Section titled “When a field is empty”- With no Image, the Hero shows text only. There is no placeholder picture.
- Image caption shows only when there is a photo.
- Empty button fields mean no button.
- An empty announcement hides the pill.
Good to know
Section titled “Good to know”- On each page, the first Hero’s Subheadline becomes the page’s description in search results, and its photo becomes the picture shown with shared links, unless you fill in the SEO panel. See Search engine details of a page.
- The sizes and colours of the headline and buttons are fixed. Email developer@example.com to change them.