Media module

Video Gallery block

YouTube, Vimeo or self-hosted videos in a grid or carousel. Videos open in a lightbox or play in place — and load only when clicked.

Overview

The Video Gallery shows several videos as thumbnails with a play button, in a grid or carousel. Clicking one opens it in a lightbox (with previous/next) or plays it in place. Players load only when a visitor clicks play, keeping the page fast; YouTube uses youtube-nocookie.com and Vimeo uses Do Not Track.

At a glance

Block name
wpbb/video-gallery
Module
Media
Find it by searching
Video Gallery
Loads JavaScript on the site
Yes, a small script, only on pages that use this block

When and why to use it

  • Testimonial and case-study videos.
  • Tutorial libraries.
  • Event recaps.

Example scenarios

  • Course page: six YouTube lessons in a 3-column grid, opening in a lightbox, with titles.
  1. Open the editor. In your WordPress dashboard go to Pages (or Posts) and click the page you want to edit, or click Add New. For headers, footers and templates, use Appearance → Editor (block themes).
  2. Add a new block. Click the blue + (Block Inserter) button in the top-left corner, or the small + that appears where you want the block. You can also type / on an empty line.
  3. Search for the block. Type Video Gallery in the search field. Brigade Blocks appear in the Brigade Blocks category and show the coral block icon.
  4. Insert it. Click Video Gallery in the results. The block appears with a field to add video links.
  5. Configure the content. Paste a YouTube or Vimeo link (or a video file address) and click Add, or add files from the Media Library. Manage the list — titles, posters, order — in the Videos panel.
  6. Customise the design. Switch to the Styles tab (half-filled circle icon) to change colours, spacing, borders and more — see Design & styling.
  7. Save or publish. Click Save draft to keep working later, Preview to check it, or Publish / Update to make it live.

Content settings

You set up this block in two places: on the block itself in the editor, and in the Settings tab (gear icon) of the sidebar on the right. Every option is listed below, with its default value.

On the block (in the editor canvas)

Add a video URL

What it does
Adds videos to the gallery.
What to enter or choose
A YouTube or Vimeo link, or a video file (.mp4, .webm), then Add. Or Or add video files from the Media Library.
How to use it
Paste the link and click Add.
When to use it
Until all videos are added.
Example
https://vimeo.com/76979871.
Result
A thumbnail appears.

Settings panel: Videos

One entry per video (“Video 1 URL”, “Video 2 URL”…).

Video URL

What it does
The address of each video.
What to enter or choose
A YouTube or Vimeo link, or a video file (.mp4, .webm).
Default
None selected
How to use it
Each item is a collapsible row. Click it to open its fields; use the arrows to reorder, the bin to delete and “Add” to create a new one.
When to use it
Always.
Example
A YouTube “watch” link.
Result
The thumbnail updates.

Title

What it does
The video title.
What to enter or choose
Short text.
How to use it
Type into the text field. Changes appear in the preview right away.
When to use it
Recommended — it is also the accessible name of the play button.
Example
“Lesson 1: Getting set up”.
Result
Shown under the thumbnail when Show titles is on.

Custom poster

What it does
A custom thumbnail image.
What to enter or choose
Custom poster / Replace poster / Remove poster.
How to use it
Click the button to open the Media Library, then upload a new file or pick an existing one and click “Select”.
When to use it
For Vimeo and video files (which have no automatic thumbnail), or to replace YouTube’s.
Example
A branded still.
Result
Without one, YouTube videos use their own thumbnail.

Move up / Move down / Remove

What it does
Reorders or removes a video.
What to enter or choose
Click a button.
How to use it
Select the block; the button is in the toolbar that appears above it.
When to use it
Anytime.
Example
Move the intro video first.
Result
The gallery updates.

Settings panel: Layout

Layout

What it does
Grid or swipeable carousel.
What to enter or choose
One of: Grid, Carousel.
Default
Grid
How to use it
Click one of the buttons in the group.
When to use it
Always optional.
Example
Carousel for many videos.
Result
The arrangement changes.

Columns (desktop)Desktop

What it does
Items per row on large screens.
What to enter or choose
A number from 1 to 6.
Default
3
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
3.
Result
Items resize to fit.

Columns (tablet)Tablet

What it does
Items per row below 1024px.
What to enter or choose
A number from 1 to 4.
Default
2
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
2.
Result
Applies up to 1023px wide.

Columns (mobile)Mobile

What it does
Items per row below 600px.
What to enter or choose
A number from 1 to 3.
Default
1
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
1.
Result
Applies up to 599px wide.

Gap (px)

What it does
Space between items.
What to enter or choose
A number from 0 to 80 (px).
Default
24 px
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always optional.
Example
8 for a tight mosaic.
Result
Items move closer or further apart.

Aspect ratio

What it does
Thumbnail and player shape.
What to enter or choose
One of: 16:9, 4:3, 1:1, 9:16 (vertical).
Default
16:9
How to use it
Open the dropdown and pick an option.
When to use it
Match your videos.
Example
9:16 for Shorts or Reels.
Result
All thumbnails use this shape.

Settings panel: Playback

Help text: “Players load only when a visitor clicks play. YouTube uses youtube-nocookie.com and Vimeo uses Do Not Track.”

Play videos

What it does
Where videos play.
What to enter or choose
One of: In a lightbox, In place.
Default
In a lightbox
How to use it
Click one of the buttons in the group.
When to use it
Lightbox for grids (bigger player, previous/next); In place for carousels or single rows.
Example
In a lightbox.
Result
Clicking plays the video there.

Show titles

What it does
Shows titles under thumbnails.
What to enter or choose
On or off.
Default
On
How to use it
Click the switch to turn it on (blue) or off.
When to use it
Usually.
Example
On.
Result
Titles appear.

Only shown for the Carousel layout.

Design & styling

Select the block, open the Styles tab in the settings sidebar (the half-filled circle icon next to the gear) and use the three pickers at the top of the Style panel:

  1. Element — which part of the block to style.
  2. State — Normal, or a state such as Hover (only the states the part supports are offered).
  3. Device — Desktop, Tablet or Mobile, for values that can differ per screen size.

Only panels that make sense for the chosen part and state are shown. The full meaning of every control is in the Styling Controls guide; below is exactly what Video Gallery offers.

Element: Video thumbnail selected first

Each thumbnail. Hover state.

Styles-tab controls for “Video thumbnail”
PanelControlPer deviceAvailable in states
BorderBorder type—Normal, Hover
Border—Normal, Hover
RadiusYesNormal
Box ShadowRemove shadow—Normal, Hover
Shadow layers—Normal, Hover

States for this part:

  • Hover — When the mouse pointer is over the whole block — so this part changes as soon as visitors point at the block.

Element: Block

The whole block.

Styles-tab controls for “Block”
PanelControlPer deviceAvailable in states
BackgroundType—Normal
Color / Gradient—Normal
Image—Normal
BorderBorder type—Normal
Border—Normal
RadiusYesNormal
Box ShadowRemove shadow—Normal
Shadow layers—Normal
SpacingMarginYesNormal
PaddingYesNormal
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal
Block alignmentYesNormal
PositionPositionYesNormal
Top / Right / Bottom / LeftYesNormal
Z-indexYesNormal
OverflowYesNormal
TransformMove X / Move Y—Normal
Scale X / Scale Y—Normal
Rotate (°), Rotate X (°), Rotate Y (°)—Normal
Skew X (°) / Skew Y (°)—Normal
EffectsOpacity (%)YesNormal
State transition (ms)—Normal
Timing—Normal
VisibilityShow on Desktop / Tablet / Mobile—Normal

States: Normal only.

Element: Play button

The play buttons. Hover state (thumbnail hovered).

Styles-tab controls for “Play button”
PanelControlPer deviceAvailable in states
ColorsText—Normal, Hover
BackgroundType—Normal, Hover
Color / Gradient—Normal, Hover
Image—Normal
BorderRadiusYesNormal
Box ShadowRemove shadow—Normal, Hover
Shadow layers—Normal, Hover
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal

States for this part:

  • Hover — When the mouse pointer is over the whole block — so this part changes as soon as visitors point at the block.

Element: Title

Video titles.

Styles-tab controls for “Title”
PanelControlPer deviceAvailable in states
TypographyFont family—Normal
Font sizeYesNormal
Weight—Normal
Style—Normal
Line heightYesNormal
Letter spacingYesNormal
Letter case—Normal
AlignmentYesNormal
Decoration—Normal
ColorsText—Normal

States: Normal only.

Element: Carousel arrows

Carousel arrows.

Styles-tab controls for “Carousel arrows”
PanelControlPer deviceAvailable in states
ColorsText—Normal, Hover, Focus
BackgroundType—Normal, Hover, Focus
Color / Gradient—Normal, Hover, Focus
Image—Normal
BorderBorder type—Normal, Hover, Focus
Border—Normal, Hover, Focus
RadiusYesNormal
Box ShadowRemove shadow—Normal, Hover, Focus
Shadow layers—Normal, Hover, Focus
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal

States for this part:

  • Hover — When the mouse pointer is over it. (Touch screens have no hover; they show the normal style.)
  • Focus — When it has keyboard focus — reached with the Tab key. Mouse clicks usually do not show focus styles.

Element: Carousel dots

Carousel dots. Active = current slide.

Styles-tab controls for “Carousel dots”
PanelControlPer deviceAvailable in states
BackgroundType—Normal, Active
Color / Gradient—Normal, Active
Image—Normal
BorderRadiusYesNormal
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal

States for this part:

  • Active — The selected / current item ([aria-current="true"]).

Responsive settings

Brigade Blocks uses three screen sizes: Desktop (wider than 1023px), Tablet (600–1023px) and Mobile (599px and narrower). Tablet and Mobile values are optional: when empty, the value of the next larger screen is used.

In the Styles tab, pick the Device first; these controls can then have a different value for that screen size: Radius, Margin, Padding, Width, Max width, Height, Min width / Min height / Max height, Block alignment, Position, Top / Right / Bottom / Left, Z-index, Overflow, Opacity (%), Font size, Line height, Letter spacing, Alignment.

The Visibility panel (Styles tab, Normal state) can hide the block entirely on Desktop, Tablet or Mobile.

Advanced options

  • HTML anchor (Advanced section of the Settings tab) — a unique name such as pricing, so you can link straight to this block with #pricing at the end of the page address (for example from a menu).
  • Additional CSS class(es) (Advanced section) — for custom CSS from your theme or the Site Editor. Separate several classes with spaces.
  • Custom attributes (Advanced section) — add data-*, title, aria-label, aria-describedby, lang or dir attributes. See Custom attributes.
  • State transition (Styles tab → Effects, Normal state) — how smoothly hover and focus styles animate.
  • Width alignment (block toolbar) — Wide width, Full width, when your theme supports them.

How it works on your site

Each thumbnail is a link to the video, so it works without JavaScript. With JavaScript, the lightbox or in-place player loads the video only on click; videos stop when the lightbox moves on or closes.

Accessibility

  • Each thumbnail link is announced as “Play video: title”.
  • The lightbox keeps focus inside, closes with Esc, and returns focus to the thumbnail.

Limitations and notes

  • Only YouTube, Vimeo and direct video files are supported.
  • Vimeo and video files need a custom poster to show a thumbnail image.
  • Up to 60 videos per gallery.