On this page
Modern teaser
The Modern teaser shows an image with a short caption in a text box. With a link, the whole teaser is clickable. You find the block Modern teaser in the shopping experiences in the category Aspina General.
Settings
| Tab | Setting | Effect |
|---|---|---|
| General | Caption, Image | Required fields: the text in the text box 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 | 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 teaser is clickable. |
| 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 | HTML tag | HTML tag of the caption. Only choose a headline (h2 to h6) if the text is a headline of your page. Default: Container (div tag). |
| General | Image effect, Hover effect (Image) | Effect on the image (Blur, Brightness, Contrast, Grayscale, Opacity, Saturation or Scale) with adjustable strength, optionally only when entering (in) or leaving (out). Default: None. |
| Layout | Padding, Border radius | Padding around the text box and rounding of the image corners. Default: 15px / 0. |
| Layout | Maximum width, Background colour | Maximum width (e.g. 740px, no effect in Cover mode) and background colour behind the image. Default: none / rgba(255, 255, 255, 0). |
| Layout | Font family, Text colour, Background colour | In the section Caption: font, text colour and background colour of the text box. Default: Text / #000000 / #ffffff. |
| Layout | Box shadow | Shadow of the text box. Default: No shadow. |
| Layout | Horizontal alignment | In the section Layout: position of the text box in the image (Left, Center, Right). Default: Left. The Vertical alignment next to it is locked, the text box stays at the default position at the bottom. |
| 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 (Caption) | Your own CSS classes for the element and the caption, separated by spaces. |
You can hide the tabs SEO & Pagespeed and Advanced with the switch Advanced configuration at the top of the dialog. The setting applies to all theme elements and is saved in your browser.
How it behaves in the shop
- If a link is set, an arrow appears in the text box as soon as you move the mouse over the teaser. The effect applies from 576 px width and not on phones in portrait.
- It is best to maintain the alt text in the Shopware Media Manager. It is used automatically.