On this page
Text teaser
The Text teaser shows an image with a title and optionally a subtitle over it. With a link, the whole element is clickable. You find the block Text teaser in the shopping experiences in the category Aspina General.
Settings
| Tab | Setting | Effect |
|---|---|---|
| General | Title, Image | Required fields: the text and the image. Default: dummy text. |
| General | Display mode | How the image fills the space: Original (Standard), Cropped (Cover) or Scaled (Stretch). Default: Cropped (Cover). |
| General | Minimum height | Only shown in display mode Cover, where it is required. Default: 340px. |
| General | Vertical align, Horizontal align | Position of the whole teaser in its area. Only editable if the display mode is not Cover. Default: Center / Center. |
| General | Alt text, Mark image as decorative | Alternative text of the image. Marked as decorative, alt text and title stay empty and screen readers skip the image. Default: off. |
| General | Link to, Open link in new tab, Link description | Target URL, new tab and the name of the link for screen readers (aria-label, empty = link title). With a link, the whole element is clickable. |
| Layout | Horizontal positioning | In the section Image: horizontal position of the image crop in display mode Cover. |
| Layout | Padding, Border radius, Background colour, Maximum width | Padding, rounding of the corners, background colour and maximum width of the element (e.g. 740px or 90%). Default: 15px / 0 / transparent / none. |
| Layout | Text alignment, Text shadow | Alignment of the text and a shadow for the text (no, small, regular or larger shadow). Default: Center / No shadow. |
| Layout | Font family, Font weight, Text formatting, Text colour | In the section Title: font, font weight, text formatting and text colour of the title. Default text colour: #ffffff. |
| Layout | Font family, Text colour | In the section Subtitle: font and text colour of the subtitle. Default text colour: #ffffff. |
| Layout | Vertical alignment, Horizontal alignment, Width, Maximum width | In the section Layout: position and size of the text block in the image. Default: centred, width auto, maximum width 90%. |
| Layout | Hover effect (Content) | The text only appears on hover (Fade in, Slide in up/right/down/left, Zoom in) or disappears on hover (Fade out). Applies from 576 px width. Default: No effect. |
| Layout | Show coloured overlay, Background colour, Use colour gradient, Background colour (2), Gradient direction (in degrees) | In the section Coloured overlay: a coloured area over the image, optionally as a gradient between two colours with a direction in degrees. The colour fields only appear when the overlay is on. Default: off. |
| SEO & Pagespeed | HTML tag (Title), HTML tag (Subtitle) | HTML tag of title and subtitle. Choose a paragraph (p) so that search engines do not treat the text as a headline. Default: paragraph (p). |
| SEO & Pagespeed | Use HTML tag as class (Title), Use HTML tag as class (Subtitle) | Gives a p tag the look of a headline (h1 to h6). |
| SEO & Pagespeed | Lazy loading | Loading behaviour of the image. Use Priority only for the largest image in the visible area. Default: Lazy. |
| Advanced | CSS class (Element), CSS class (Title), CSS class (Subtitle) | Your own CSS classes for element, title and subtitle, separated by spaces. |
You can hide the tabs SEO & Pagespeed and Advanced with the switch Advanced configuration at the top of the dialog.
How it behaves in the shop
- Hover effects apply from 576 px width. On phones in portrait the text stays as it is.
Tip: Hover effects work best with linked elements. The help text in the dialog recommends this as well.