Media · Gutenberg

Thumbnail Gallery block for WordPress

Large main image with a scrollable thumbnail strip navigation.

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

Large main image with a scrollable thumbnail strip navigation.

Inspector panels on this block: Images, Layout, Thumbnails, Options. Those titles come from index.js, not from a shared template.

Behavior controls: “Thumbnail Position” options: Bottom, Top, Left, Right; “Main Aspect Ratio” options: 16:9 Widescreen, 4:3 Standard, 3:2 Photo, 1:1 Square, 3:4 Portrait; “Image Fit” options: Cover, Contain; “Animation” options: Fade, Slide.

Where to find it

Gutenberg inserter → Media → search “Thumbnail Gallery” (block name `blockenberg/thumbnail-gallery` in block.json). Style it in the sidebar after insert.

How to use Thumbnail Gallery block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Thumbnail Gallery”, insert it. Category: Media.
  3. Configure inspector controls that exist on this block. Open Images. Set “Title”, “Caption”, “Alt Text”, “Thumbnail Position”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. 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.
CaptionText field in the inspector.
Alt TextText field in the inspector.
Thumbnail PositionSelect control; the chosen value is saved on the block. Options: Bottom; Top; Left; Right. block.json default: bottom. Saved as `thumbPosition`.
Main Aspect RatioSelect control; the chosen value is saved on the block. Options: 16:9 Widescreen; 4:3 Standard; 3:2 Photo; 1:1 Square; 3:4 Portrait. block.json default: 16/9. Saved as `mainAspect`.
Image FitSelect control; the chosen value is saved on the block. Options: Cover; Contain. block.json default: cover. Saved as `mainObjectFit`.
AnimationSelect control; the chosen value is saved on the block. Options: Fade; Slide. block.json default: fade. Saved as `animationType`.
Max Width (px)Numeric range control in the inspector. Range 400–1600. block.json default: 900. Saved as `maxWidth`.
Thumbnail Size (px)Numeric range control in the inspector. Range 40–160. block.json default: 72. Saved as `thumbSize`.
Thumbnail Gap (px)Numeric range control in the inspector. Range 0–24. block.json default: 8. Saved as `thumbGap`.
Thumbnail Border RadiusNumeric range control in the inspector. Range 0–20. block.json default: 6. Saved as `thumbBorderRadius`.
Active Border Width (px)Numeric range control in the inspector. Range 1–6. block.json default: 2. Saved as `thumbActiveBorderWidth`.
Show CaptionsOn/off toggle in the inspector. On by default. Saved as `showCaptions`.
Show CounterOn/off toggle in the inspector. On by default. Saved as `showCounter`.
Show Navigation ArrowsOn/off toggle in the inspector. On by default. Saved as `showArrows`.
Show Zoom ButtonOn/off toggle in the inspector. On by default. Saved as `showZoom`.
Auto-PlayOn/off toggle in the inspector. Off by default. Saved as `autoPlay`.
Auto-Play Delay (ms)Numeric range control in the inspector. Range 1000–10000. block.json default: 4000. Saved as `autoPlayDelay`.
Main Border RadiusNumeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `mainBorderRadius`.
Padding Top (px)Numeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingBottom`.
Colors — BackgroundColor control in the inspector. Saved as `bgColor`.
Main Image BackgroundColor control in the inspector. block.json default: #000000. Saved as `mainBg`.
Caption BackgroundColor control in the inspector. block.json default: rgba(0,0,0,0.6). Saved as `captionBg`.
Caption TextColor control in the inspector. block.json default: #ffffff. Saved as `captionColor`.
Counter BackgroundColor control in the inspector. block.json default: rgba(0,0,0,0.55). Saved as `counterBg`.
Counter TextColor control in the inspector. block.json default: #ffffff. Saved as `counterColor`.
Active Thumb BorderColor control in the inspector. block.json default: #6366f1. Saved as `thumbActiveBorder`.
Thumbnail BackgroundColor control in the inspector. block.json default: #e5e7eb. Saved as `thumbBg`.
Arrow BackgroundColor control in the inspector. block.json default: rgba(0,0,0,0.45). Saved as `arrowBg`.
Arrow IconColor control in the inspector. block.json default: #ffffff. Saved as `arrowColor`.

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 Thumbnail Gallery block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Thumbnail Gallery”. It sits under Media. After insert, open Images and set “Title”, “Caption”, “Alt Text”, “Thumbnail Position”.

What makes Thumbnail Gallery different from other Blockenberg blocks?

Large main image with a scrollable thumbnail strip navigation. Inspector labels on this block include “Title”, “Caption”, “Alt Text”, “Thumbnail Position”.

Is the Thumbnail Gallery Gutenberg block free?

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

Can I style Thumbnail Gallery 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: Images, Layout, Thumbnails, Options).

Related media blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Thumbnail Gallery from the Gutenberg inserter.

Get Blockenberg