Chapter 8. Settings Reference

Slide Settings

In the slide editor. They apply to one slide.

Image

Image

The slide's image, chosen from the Media Manager. Required. SwiftSlider keeps a copy of it and generates every optimized version from that copy.

Alt

A short description of the image, read by screen readers and shown if the image can't load. If you leave it empty, SwiftSlider uses the slide's heading, or failing that a description made from the file name.

Default: Empty
Fit Mode

How the image fills the slider when their shapes differ. Cover fills the slider and crops the edges. Contain shows the whole image, with empty space at the sides or top and bottom. Fill stretches the image to the slider's shape. None shows the image at its natural size, centred. Scale-Down behaves like Contain, but never enlarges the image.

Default: Cover
Resize Strategy (Mobile View)

What screens up to 576 pixels wide receive. Viewport crop sends the part of the image inside the crop box, at the slider's mobile shape. Maintain Aspect Ratio sends smaller copies of the whole image.

Default: Viewport crop
Affects: Bytes, LCP
Crop box

The area of the image phones receive with Viewport crop, set in the Mobile Crop preview. It can't be narrower than 576 pixels of the original image.

Default: The smallest box, centred

Content

The heading, text and button are all optional. A slide without any of them shows only its image.

Heading

The slide's main line. The module decides which HTML tag it uses; see Content Header Tag.

Text

A sentence or two under the heading. Keep it short; it has to fit over the image on a phone.

Hide Text on Mobile

Hides the Text on screens up to 576 pixels wide. The heading and button still show.

Default: No
Button Label and Button URL

The button's words and the address it opens. The button appears only when it has a URL. Use a full address for other sites, or a path such as /menu for pages on yours.

Button Class

CSS classes for the button, separated by spaces, so your template's button styles apply to it.

Text Color

The colour of the heading and text.

Default: White
Content Style

A background that helps the content stand out from the image: None, Dark Box, Light Box, Gradient, Shadow or Overlay. Applies on screens wider than 576 pixels; phones always use Overlay.

Content Width

The largest width of the content block: Small (400 pixels), Medium (600 pixels) or Large (800 pixels). On phones, the content takes up to 80% of the slider's width.

Default: Medium

Alignment

Horizontal

Places the content on the Left, Center or Right of the slide, and aligns its text the same way.

Default: Center
Vertical

Places the content at the Top, Center or Bottom of the slide.

Default: Center
Mobile

On screens up to 576 pixels wide, Center centres the content both ways, which usually reads best on a phone. Inherit keeps the Horizontal and Vertical choices.

Default: Center

Slides have a published state in the database, but the slide editor has no field for it and the module shows every slide. Decide whether slides should be publishable individually.