Media · Gutenberg

Image Slider block for WordPress

A responsive image carousel with captions, autoplay, arrows, dots and touch support.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

A responsive image carousel with captions, autoplay, arrows, dots and touch support.

Inspector panels on this block: Slides, Autoplay & Behaviour, Navigation, Dimensions, Caption & Button. Those titles come from index.js, not from a shared template.

Behavior controls: “Transition” options: Slide, Fade; “Arrow Style” options: Rounded, Circle, Square; “Image Fit” options: Cover, Contain, Fill; “Caption Position” options: Bottom Left, Bottom Center, Center, None.

Where to find it

Gutenberg inserter → Media → search “Image Slider” (block name `blockenberg/image-slider` in block.json). Style it in the sidebar after insert.

How to use Image Slider block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Image Slider”, insert it. Category: Media.
  3. Configure inspector controls that exist on this block. Open Slides. Set “Slides — Title”, “Subtitle”, “Button Label (optional)”, “Button URL”.
  4. Check the published page. The view script reads HTML data attributes: data-autoplay, data-loop, data-pause-hover, data-speed, data-transition. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Slides — TitleText field in the inspector.
SubtitleText field in the inspector.
Button Label (optional)Text field in the inspector.
Button URLText field in the inspector.
Open in new tabOn/off toggle in the inspector.
AutoplayOn/off toggle in the inspector. On by default. Saved as `autoplay`.
Speed (ms)Numeric range control in the inspector. Range 1000–10000. block.json default: 4000. Saved as `autoplaySpeed`.
Pause on HoverOn/off toggle in the inspector. On by default. Saved as `pauseOnHover`.
LoopOn/off toggle in the inspector. On by default. Saved as `loop`.
TransitionSelect control; the chosen value is saved on the block. Options: Slide; Fade. block.json default: slide. Saved as `transition`.
Show ArrowsOn/off toggle in the inspector. On by default. Saved as `showArrows`.
Arrow StyleSelect control; the chosen value is saved on the block. Options: Rounded; Circle; Square. block.json default: rounded. Saved as `arrowStyle`.
Show DotsOn/off toggle in the inspector. On by default. Saved as `showDots`.
Height Desktop (px)Numeric range control in the inspector. Range 200–900. block.json default: 480. Saved as `height`.
Height Mobile (px)Numeric range control in the inspector. Range 100–600. block.json default: 280. Saved as `mobileHeight`.
Border Radius (px)Numeric range control in the inspector. Range 0–40. block.json default: 10. Saved as `borderRadius`.
Image FitSelect control; the chosen value is saved on the block. Options: Cover; Contain; Fill. block.json default: cover. Saved as `objectFit`.
Caption PositionSelect control; the chosen value is saved on the block. Options: Bottom Left; Bottom Center; Center; None. block.json default: bottom-left. Saved as `captionPosition`.
Button StyleSelect control; the chosen value is saved on the block. Options: Primary (solid); Outline; Ghost (text). block.json default: primary. Saved as `btnStyle`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Image Slider block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Image Slider”. It sits under Media. After insert, open Slides and set “Slides — Title”, “Subtitle”, “Button Label (optional)”, “Button URL”.

What makes Image Slider different from other Blockenberg blocks?

A responsive image carousel with captions, autoplay, arrows, dots and touch support. Inspector labels on this block include “Slides — Title”, “Subtitle”, “Button Label (optional)”, “Button URL”.

Is the Image Slider Gutenberg block free?

Yes. Image Slider ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Image Slider to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Slides, Autoplay & Behaviour, Navigation, Dimensions).

Related media blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Image Slider from the Gutenberg inserter.

Get Blockenberg