Styling the output
The front end renders a predictable set of classes, so a child theme or additional CSS can restyle the strip without the plugin changing.
The outer element carries album-slider-block, plus
album-slider-block--fill or album-slider-block--natural depending on the
layout setting, plus whatever alignment class WordPress adds. Inside it are the
scrolling wrapper, the strip, and the groups.
| Class | What it is |
|---|---|
album-slider-block |
The block wrapper |
album-slider-wrap |
Positioning context for the arrows |
album-strip-wrap |
The clipped viewport the strip moves inside |
album-strip |
The moving strip |
album-strip-spacer |
The end gap, one at each end |
album-strip-track |
Holds the groups; carries the group gap |
album-group |
One group: label plus its albums |
album-group-label |
A group's label |
album-group-slides |
The albums within one group |
album-slide |
One album |
album-arrow |
The arrow buttons, with prev or next |
album-dots and album-dot |
The dots below the strip |
In fill layout the slide is a square with a dark background and rounded corners, and the shortcode's output is forced to fill it exactly. In natural layout the background is transparent and the content keeps its own height.
The block renders dynamically on every page load rather than saving its markup into the post. That means a plugin update which changes the markup takes effect immediately, with no need to re-save the pages that use it.
