On this page
Hero banner
The CMS element Hero banner is a large banner with a background image, headline, text and button. You find it as the block Hero banner in the block category Aspina Banners.
Settings
The defaults are the values a new hero banner starts with.
| Tab | Setting | Effect |
|---|---|---|
| General | Headline, Text, Button text | Headline (empty: left out), text (required) and button label (empty: no button). Default: sample text. |
| General | Image | Background image. Without an image, the storefront does not output the banner at all. |
| General | Minimum height | Default: 340px. |
| General | Link to, Open link in new tab | Target of the banner. Default: #, no new tab. |
| General | Entire element clickable | On: the whole banner is a link and the button only looks like a button. Off: only the button is a link. Default: on. |
| General | Link description | Name of the link for screen readers, only with Entire element clickable on. |
| Layout | Padding | Space between the edge and the content. Default: 15px. |
| Layout | Border radius, Background colour | Default: 0 and transparent. |
| Layout | Text alignment, Text shadow | Default: Center, No shadow. |
| Layout | Headline and text: Font family, Text colour (headline also Font weight, Text formatting) | Look of headline and text. Default: text colour white. |
| Layout | Link colour, Link colour :hover | Colour of links in the text. Default: white. |
| Layout | Button style, Outline button | Default: Primary, no outline. |
| Layout | Attachment | Scroll: the image scrolls along. Fixed: the image stays in place. Default: Scroll. |
| Layout | Parallax effect | Only selectable with Fixed. Default: off. |
| Layout | Vertical alignment, Horizontal alignment | Position of the content. Default: Middle / Center. |
| Layout | Width, Maximum width | Width of the content. Default: auto and 90%. |
| Layout | Apply overlay styling | Puts a panel behind the content, with background colour, Backdrop effect (blur), Box shadow and Rounded corners. Default: off. |
| Layout | Show coloured overlay | Colour layer above the image, optionally as a gradient with a second colour and Gradient direction (in degrees) from 0 to 360. Default: on, gradient from yellow to red, 45 degrees. |
| SEO & Pagespeed | HTML tag (Headline), Use HTML tag as class (Headline) | Default: Paragraph (p tag) with the class h2. |
| Advanced | CSS class (Element), CSS class (Headline), CSS class (Text), CSS class (Button) | Your own classes for element, headline, text and button, separated by spaces. |
How the banner behaves in the storefront
- A fixed background image (Fixed) only applies from 768 pixels width. On smaller screens and on iOS the image scrolls along.
- The Parallax effect only runs with Fixed and only on screens wider than 768 pixels.
Note: With Entire element clickable, you should not put links in the text. The help text in the dialog says the same.
Tip: The p tag as headline keeps search engines from treating the text as a heading. This is the default.
Note: The fields Link style and Link style :hover are greyed out in the dialog and currently not available.