On this page
Call-to-Action
The Call-to-Action element shows an image and places a text box with headline, text and one button on top of it. It is meant to lead visitors to an action. You find it as the block Call-to-Action in the category Aspina General.
Warning: Without a selected image the element outputs nothing in the storefront, not even the text. Always select an image.
Settings
| Tab | Setting | Effect |
|---|---|---|
| General | Headline | The headline of the text box. Default: dummy text. |
| General | Text, Button text | Text and label of the button. Both are required (default: dummy text and dummy text). |
| General | Image | The image of the element. |
| General | Display mode | Original, Scaled (Stretch) or Cropped (Cover). Default: Cover. |
| General | Minimum height | Only visible in Cover mode, where it is required. Default: 340px. |
| General | Vertical align, Horizontal align | Position of the element in its area. Disabled in Cover mode. Default: Center. |
| General | Alt text, Mark image as decorative | Image description for screen readers. Images marked as decorative get an empty alt text. |
| General | Link to, Open link in new tab | Target of the button and whether it opens in a new tab. |
| General | Entire element clickable | Makes the whole element a link. Default: off. |
| Layout | Padding, Border radius, Background colour, Maximum width | Spacing, rounding, background and width limit. Maximum width is disabled in Cover mode. Default: 15px, 0, transparent, none. |
| Layout | Text alignment, Text shadow | Alignment (default: Center) and shadow of the texts (default: No shadow). |
| Layout | Sections Headline and Text | Font family and text colour. Default: font family "Headlines" and "Text", text colour #111111. |
| Layout | Section Button | Button style (default: Primary) and Outline button (default: off). |
| Layout | Horizontal positioning | Image section left, centre or right, in Cover mode. Default: Center. |
| Layout | Section Content overlay | Position and size of the text box (Width: auto, Maximum width: 90%) plus Apply overlay styling (default: on) with Background colour (default: rgba(255, 255, 255, 0.85)), Backdrop effect, Box shadow (default: Small shadow) and Rounded corners. |
| Layout | Hover effect (Content) | Effect when the mouse moves over the element: Fade in, Slide in (up, right, down, left), Zoom in or Fade out. Default: No effect. Hover effect (Coloured overlay) is disabled in the administration (currently not available). |
| Layout | Show coloured overlay | Colour layer over the image. Default: off. It comes with Background colour (default: rgba(0, 0, 0, 0.85)) and optionally a gradient with Background colour (2) and Gradient direction (in degrees) (default: 0). |
| SEO & Pagespeed | HTML tag (Headline), Use HTML tag as class (Headline) | Paragraph or heading (h1 to h6) and the look of a heading level. Default: Paragraph (p tag) with class h2. |
| SEO & Pagespeed | Lazy loading | Eager loads the image preferentially, Lazy only when you scroll close to it, Priority like Eager plus fetchpriority="high" (only for the largest image visible when the page opens). Default: Lazy. |
| Advanced | CSS class (Element) and others | Your own classes for element, headline, text and button, separated by spaces. |
How the element behaves in the storefront
- The hover effects only exist from a width of 576 pixels. On smartphones the element stays as configured.
- With a Hover effect (Content) other than "Fade out", the text box is invisible at first and appears when you hover. With "Fade out" it is visible and fades out on hover.
- The text from the text field is output sanitised.
Tips
- Only use hover effects in clickable elements. The help text in the admin recommends this explicitly.
- With Entire element clickable, do not put links in the text.