On this page
  1. Settings
  2. How the teaser behaves in the storefront
  3. Tips

Button teaser

The Button teaser shows an image with a single button on top. It has no other texts. You can add a coloured overlay and hover effects. You find it as the block Button teaser in the category Aspina General.

Warning: Without a selected image the teaser outputs nothing in the storefront, not even the button. Always select an image.

Settings

Tab Setting Effect
General Button text Label of the button. Default: dummy text.
General Image The image of the teaser.
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 teaser 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 image a link. The button stays visible but is then only decoration. 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 Section Button Button style (default: Primary) and Outline button (default: off).
Layout Section Layout Vertical alignment and Horizontal alignment of the button in the image. Default: Center.
Layout Horizontal positioning Image section left, centre or right, in Cover mode. Default: Center.
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 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), CSS class (Button) Your own classes, separated by spaces.

How the teaser behaves in the storefront

  • The hover effects only exist from a width of 576 pixels. On smartphones the teaser stays as configured.
  • With a Hover effect (Content) other than "Fade out", the button is invisible at first and appears when you hover. With "Fade out" it is visible and fades out on hover.
  • The button never becomes wider than the teaser itself.

Tips

  • Only use hover effects in clickable teasers. The help text in the admin recommends this explicitly.
  • Load the image at the top of the page with Lazy loading "Eager" and images further down with "Lazy". "Priority" is meant only for the largest image visible when the page opens, otherwise it slows down other content.
Was this page helpful?