Skip to main content

Carousel

A slider of image or content slides, with arrows, dots, autoplay and per-breakpoint slide counts.

The block renders through the carousel element — the same PHP that runs in the page builder, so the front end is identical either way.

What the sidebar exposes

OptionWhat it does
slidesThe slides — image, heading, text and link
per_pageSlides visible at once on desktop
per_page_tabletSlides visible on tablet
per_page_mobileSlides visible on mobile
gapSpace between slides
heightFixed slide height, if you want one
arrowsShow previous / next arrows
paginationShow the dots
autoplayAdvance by itself
intervalHow long each slide is held
speedTransition duration
pause_hoverPause autoplay while hovered
loopWrap around at the ends
dragAllow dragging / swiping
effectSlide or fade
overlayDarken slides behind their text
overlay_opacityHow dark that overlay is
heading_colorSlide heading colour
text_colorSlide text colour

Anything not listed stays available in the page builder, and round-trips untouched — the block only writes the values you change, so an element styled in the builder keeps every setting this sidebar does not show.

note
slides is a repeater

It is an addable-popup: items expand in place in the block sidebar rather than opening a modal, and store exactly the value the page builder stores.

The carousel does not move in the canvas

It shows the first slide, held, and dragging does not scroll it. Both would collide with the editor's own gestures for selecting and moving a block — and holding it still means an option change does not restart a rotation you were half-way through watching.

caution
Set all three per_page values, not just the desktop one

They are one responsive decision in three parts. A carousel that shows four slides on a phone because only per_page was set is exactly the failure the tablet and mobile values exist to prevent — and it is not visible in a desktop-width canvas.

note
pause_hover does nothing without autoplay

There is nothing to pause on a carousel that only moves when the visitor moves it.