Blog · Gutenberg

Post Slider block for WordPress

Hero-style slider cycling through posts with full-width background images and overlay captions.

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

Hero-style slider cycling through posts with full-width background images and overlay captions.

Inspector panels on this block: Slides, Slider Settings. Those titles come from index.js, not from a shared template.

Behavior controls: “Transition” options: Fade, Slide; “Caption Alignment” options: Left, Center, Right.

Where to find it

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

How to use Post 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 “Post Slider”, insert it. Category: Blog.
  3. Configure inspector controls that exist on this block. Open Slides. Set “Title”, “Excerpt”, “Button Label”, “Button URL”.
  4. Check the published page. The view script reads HTML data attributes: data-autoplay, data-dots, data-speed. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
TitleText field in the inspector.
ExcerptMultiline text field in the inspector.
Button LabelText field in the inspector.
Button URLText field in the inspector.
Height (px)Numeric range control in the inspector. Range 200–900. block.json default: 500. Saved as `height`.
TransitionSelect control; the chosen value is saved on the block. Options: Fade; Slide. block.json default: fade. Saved as `transition`.
AutoplayOn/off toggle in the inspector. On by default. Saved as `autoplay`.
Speed (ms)Numeric range control in the inspector. Range 1500–9000. block.json default: 4000. Saved as `speed`.
Show ArrowsOn/off toggle in the inspector. On by default. Saved as `showArrows`.
Show DotsOn/off toggle in the inspector. On by default. Saved as `showDots`.
Caption AlignmentSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: left. Saved as `captionAlign`.
Title TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`.
Excerpt TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `excerptTypo`.
Border Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 0. Saved as `borderRadius`.
Overlay ColorColor control in the inspector. block.json default: rgba(0,0,0,0.45). Saved as `overlayBg`.
Text ColorColor control in the inspector. block.json default: #ffffff. Saved as `textColor`.
Accent / ButtonColor control in the inspector. block.json default: #6c3fb5. Saved as `accentColor`.

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 Post Slider block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Post Slider”. It sits under Blog. After insert, open Slides and set “Title”, “Excerpt”, “Button Label”, “Button URL”.

What makes Post Slider different from other Blockenberg blocks?

Hero-style slider cycling through posts with full-width background images and overlay captions. Inspector labels on this block include “Title”, “Excerpt”, “Button Label”, “Button URL”.

Is the Post Slider Gutenberg block free?

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

Can I style Post 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, Slider Settings).

Related blog blocks

Get Blockenberg

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

Get Blockenberg