Custom Gutenberg Blocks

Hero Slider

A full-bleed hero carousel with crossfading slides and titled, clickable pagination built from editor content.

Dynamic BlockSwiperInner BlocksAccessibility

What it does

A hero block that rotates through editor-built slides, each its own inner block with a gradient, icon color, and a short pagination title. On the page the slides crossfade, and the pagination renders as clickable, labelled tabs rather than anonymous dots.

Why it exists

The hero is the most valuable and most-improvised area of a landing page. A structured slider lets editors run several messages in the primary slot while keeping every slide inside the same layout, contrast, and interaction rules.

Engineering considerations

The slider is a server-rendered block containing hero-slide inner blocks, so slide content stays real, editable block content. Swiper drives a crossfade loop with previous/next controls; a custom bullet renderer pulls each slide’s pagination title into the control, so the navigation is descriptive rather than decorative, and slide count is managed as a block attribute.

Screenshots & media
Slides as inner blocks in the editor
Slides as inner blocks in the editor
Slide count & animation controls
Slide count & animation controls
Built-in help & placement rules
Built-in help & placement rules
Hero slide on the frontend
Hero slide on the frontend
block.json — attributes & render binding
block.json — attributes & render binding
Dynamic render callback (render.php)
Dynamic render callback (render.php)
Contact

Start a Conversation

Matt works directly with teams and agencies on enterprise WordPress development, from custom Gutenberg experiences to large-scale builds and ongoing engineering support. Available for remote contract engagements.

Connect with Matt