Overview
Component name: Hero (Homepage Hero; Basic Hero)
Authors who can use: depends on variation
- Basic Hero: any author
- Homepage Hero: Admin only
Templates/page types that can use component: all
Required or optional: required
Authoring Fields
Adding the Hero component to the page
1. The Hero component is baked into page templates. Authors cannot add the Hero.
Editing the Basic Hero component
1. With the edit wrench, open the component.
2. Pre-title field: Add a pre-title to display above the main title.
3. Title field: Add a title to display as the headline.
4. Description field: Add a description to appear below the main title. The description text may be formatted with bold, italics, bullets, links, etc.
5. Enable Search checkbox: When checked, a Quick Search bar will display in the Hero. When unchecked, the option to instead add CTAs is enabled. Default unchecked.
6. Enable Image checkbox: When checked, an Image component will display in the Hero. Default unchecked.
a. To edit the Image component:
i. Exit the Hero authoring dialog.
ii. Hover over the Image component (now displayed within the Hero) until it has a blue outline. Click on the edit wrench.
iii. Edit the Image component as normal. For editing details, reference the Image component user guide.
iv. Disable lazy loading checkbox: must be checked off for Hero. All images authored via the out-of-the-box Image component are lazy loaded by default. This means that the image will be loaded at a later point in the page load process. Since the Hero is at the top, we want this disabled, so the image is always visible.
7. Image Alignment dropdown: Left, Right, Top. Default Left.
8. Call-to-actions multifield (only enabled if Search is unchecked)
a. Call to action Link path field: Add a link for the CTA button.
b. Call to action Link label field: Add a label for the CTA button.
9. Exit the authoring dialog. With the paintbrush, open the Styles dropdown.
a. Select alignment options for text, and/or for Image (if Image is enabled). The default is text aligned left; Image aligned left.
b. Preview the options using the Emulator widget to test on desktop, mobile, and tablet breakpoints.
10. To edit the Hero background color, use the side toggle to open the Content Tree on the lefthand side. Click the edit wrench next to the Container that holds the Hero. This opens the Container's authoring dialog, which includes the Container Background Color option. Reference the Container user guide for more info.
Basic Hero examples
Editing the Homepage Hero component
1. Follow the same guidelines as above for the Basic Hero. There are only two differences:
a. Homepage Hero only appears on the Homepage Template.
b. Homepage Hero’s Image, if enabled, is full bleed across the page – it extends to the edge of the screen, leaving no white space.
Accessibility
1. If Search checkbox is checked, an accessibility label must be added to the Quick Search component in the Hero. Click on Quick Search --> edit wrench --> Accessibility tab, then fill the Label field.
Other tips
1. Use the Emulator widget to test Hero size on different devices.
a. If using an image: On desktop, the image can appear on the left, right, or top. On mobile/tablet, the image is always on top.
2. A maximum of two CTAs can be added. Only the first should have Primary checkbox checked.
3. If an Image is enabled, text should always be aligned left.
4. A white background can be added to the Hero. Use the Container component to add this styling.
5. Search Hubs: If you have the 5th step enabled, you can add the url of a search results page in the redirection path authoring.
Ex. Agency all search hub should appear from a search bar and results are not displayed automatically.