Review Slider Blocks for Gutenberg

9

A Gutenberg block set for building responsive testimonial and review carousels using Swiper Web Components, the modern custom-element based slider engine (<swiper-container> / <swiper-slide>).

The plugin includes a slider container block and a repeatable review item block. Each review can contain rich, free-form content (any blocks), plus an optional avatar/logo image and a title/name field.

1) Reviews (slider container)

The Reviews block is the Swiper slider wrapper with editor controls for:

  • Responsive slides per view:
    • Desktop / Tablet / Mobile
  • Autoplay:
    • configurable delay in milliseconds (set to 0 to disable)
  • Optional navigation UI:
    • Prev/Next arrows
    • Pagination (clickable)

Spacing between slides is derived from Gutenberg blockGap, so the slider follows the same spacing system as the rest of your block layouts.

On save, the block outputs a <swiper-container> with all configuration stored as attributes and breakpoints serialized in a safe form.

2) Review (slider item)

The Review block represents a single slide:

  • Main review text/content via InnerBlocks (any blocks allowed)
  • A title/name field (RichText)
  • Optional image (MediaUpload) for an avatar, logo, or reviewer photo

Each item saves as a <swiper-slide> containing:

  • the review content
  • the reviewer/title area with optional image

Modern Swiper integration

This block set uses Swiper Web Components rather than legacy jQuery-based sliders:

  • no per-slider JS initialization in content
  • clean, portable HTML output
  • slider configuration stored as element attributes
  • future-proof approach aligned with modern Swiper usage

There are no reviews yet.

Be the first to review “Review Slider Blocks for Gutenberg”

Your email address will not be published. Required fields are marked *