Add a Filterable Video Gallery to the WordPress Block Editor

Add a Filterable Video Gallery to the WordPress Block Editor

Note: This article focuses on the Professional (Pro) version of FolioBlocks. Some of the features described here may not be available in the free version.

The Video Gallery Block in FolioBlocks lets you create modern, filterable video galleries directly inside the WordPress Block Editor (Gutenberg) — no short-codes, no settings screens, no fuss.

With full support for self-hosted, YouTube, and Vimeo videos, it’s the easiest way to showcase professional video collections in a responsive, visually engaging layout.


The Video Gallery Block makes it effortless to display multiple videos in a clean, customizable grid — complete with hover effects, category filtering, and built-in Lightbox playback.

Each video can have its own thumbnail, title, and caption, while filters let visitors browse different categories or topics without leaving the page.

Perfect for:

  • Filmmakers and videographers showcasing portfolios
  • Agencies or educators organizing video tutorials
  • Brands displaying campaign or product videos
  • Anyone wanting a stylish, filterable video gallery inside Gutenberg

1. Insert the Block

In the WordPress Block Editor, click the ➕ Add Block button and search for “Video Gallery.” You’ll find it under the FolioBlocks section.

Another option to add the block is to type / followed by the block name (Video Gallery) from inside the block editor.

2. Add Videos

With the block added to the editor you are prompted to add your first video.

You can Upload videos, add videos from your Media Library, or Insert from URL to embed videos from YouTube or Vimeo.

3. Add Thumbnails and Details

After inserting your video, you are prompted to set a custom thumbnail image. Thumbnails can be uploaded manually or selected from the media library.

The just like the photo gallery blocks in FolioBlocks, the Video Gallery block creates your videos as InnerBlocks. If you now look at you block structure in the List View it should look like this:

If you select the main Video Gallery block you can see options in the block toolbar to set the Width (Content, Wide, Full) as well as to + Add Videos as seen in the image bellow:

Selecting the inner Video block in the List View will instead show you the block toolbar for that Video block. There you will find options to Change Video and Change Thumbnail as seen bellow:

With the inner Video block selected you also get access to its settings panel. Here you will find settings to change the video source file, to set the a title for your video, and to set a description for your video.

The Title can be displayed when you hover over the video block. While the Description can be set to be displayed inside of the video Lightbox.


With the main Video Gallery block selected you can access the block’s settings panel, the first of which contains the General Gallery Settings.

Columns

Set how many columns to show on DesktopTablet, and Mobile.

Gap Between Items

The Gap Between Items slider allows you to define the amount of space between the video thumbnails with options to set different values for Desktop, Tablet, and Mobile.

Thumbnail Resolution

Set or change the thumbnail image for each video. This is what appears in the grid before the video is played.

Thumbnail Aspect Ratio

Set or change the thumbnail image for each video. This is what appears in the grid before the video is played.

Video Gallery Settings

Video Gallery Block - Gallery Click Settings

Lightbox Appearance

This setting allows you to between Light & Dark mode in the Video Lightbox.

This setting allows you to choose what is displayed in the Lightbox alongside your video. Options include:

  • Video Only
  • Video + Info
  • Video + Product Info

Note: Video + Info is only available when Enable WooCommerce Integration is active.

Enable Lightbox in Editor

This feature allows you to open the Lightbox in the WordPress Block Editor so you can examine how it looks.


Gallery Hover Settings

Hover Style

The Hover Style dropdown allows to select a style for your hover overlay. You can choose from:

  • Default Overlay
  • Blur Overlay
  • Color Overlay

Note: The Color Overlay adds an additional component to the Video Gallery Block’s styles panel that allows you to set the Background and Text color of the overlay.

Overlay Content

The Overlay Content dropdown allows you to select what is displayed inside of the Overlay when you hover over a Video thumbnail. You can select from:

  • None
  • Play Button
  • Video Title
  • Video Title + Play Button
  • Video Title + Play Button + Filter Category

Note: Video Title + Play Button + Filter Category is only available when Enable Video Filtering is activated.


Enable Video Filtering

Turn on Enable Video Filtering to let users switch between categories using a clean filter bar above your video gallery.

You can add as many categories as you want (e.g., “Behind the Scenes,” “Commercials,” “Interviews”).

Assign Categories to Video Blocks

Once you have added all your categories on the main Video Gallery Block you can select the individual Video Blocks and in their block settings you will find a Filter Category drop down where you can select from your categories.


Enable WooCommerce Integration

Enables WooCommerce Integration allowing you to link gallery images with WooCommerce products on your website. Instructions for WooCommerce integration are included later in this tutorial.

Note: Toggle for Enable WooCommerce Integration will only display if WooCommerce plugin is installed and active on your website.

Display Add To Cart icon

With Enable WooCommerce Integration turned on you will be presented with a new select control that lets you choose if you want to always display the Add To Cart button or Display it only Hover.

Note: You can set the icon & background color for the Add To Cart icon by going to the Video Gallery Block’s styles panel when Enable WooCommerce Integration is active.

Set Add To Cart icon Behavior

The Default Add to Cart Icon Behavior select control allows you to set the default behavior of Add to Cart Icons for the entire gallery. You can choose between the default “Add To Cart” or linking to the product page.

This setting can be overridden on a video per video basis. Giving you the option to set one behavior for the gallery and then override it on videos as needed.

Linking Videos to WooCommerce Products

Linking your videos to products is super simple, with Enable WooCommerce Integration turned on simply select one of the video blocks in your gallery and look in it’s block settings.

You will see a new setting available, Linked WooCommerce Products, with an input field that allows you to search through the all of the WooCommerce Products on your site.

Simply search for your product and select it to link it with the video.

Note: The settings for Linked WooCommerce Products only appear when Enable WooCommerce Integration is active on the parent gallery block.


Block General Styles

Background

Change the background color of the entire Video Gallery block.

Use a dark background to enhance contrast or a light background for a clean, minimal aesthetic.

Dimensions – Padding & Margin

Use Padding to control spacing inside the gallery container and Margin to adjust spacing around the gallery relative to nearby blocks.

This ensures perfect alignment across your layout.


Video Thumbnail Styles

Video Gallery Block - Video Thumbnail Styles

Border Color, Width, and Radius

Add borders around your video thumbnails to match your website’s design style. Rounded corners create a softer, modern look.

Drop Shadow

The Drop Shadow dropdown allows you to select from a variety of Drop Shadow effects and apply them to the thumbnail images in your gallery. You can select from the following types of Drop Shadow:

  • None
  • Subtle
  • Soft
  • Elevated
  • Dramatic

Filter Bar Styles

When Enable Video Filtering is active the Filter Bar Styles panel will be present in the Video Gallery Block’s style panel.

Font-Family, Font Size, Appearance, Line Height, Letter Spacing, Decoration, & Letter Case

When using a block based theme that uses theme.json FolioBlocks will detect available fonts and let you set the font for the Filter Bar. Additional controls allow you to set Font Size, Appearance, Line Height, Letter Spacing, Decoration, and Letter Case styles.

Active – Text Color & Active – Background Color

These two settings allow you to set the color and background color for the active term in the Filter Bar.

Inactive – Text Color & Inactive – Background Color

These two settings allow you to set the color and background color for the inactive terms in the Filter Bar.

Note: The font used in the Filter Bar for Active and Inactive terms is pulled from your theme’s body font.

Filter Bar Styles Panel in Masonry Gallery Block

Per-Video Overrides for Gallery Hover Settings

Starting with FolioBlocks 1.4, individual Video Blocks within the Video Gallery Block can now override the gallery’s default Gallery Hover Settings.

Simply select any Video Block inside the gallery and enable Override Gallery Hover Settings in the Video Block settings panel. Once enabled, the same controls available at the gallery level become available for that specific Video Block, allowing you to customize its behavior independently of the rest of the gallery.

This feature unlocks a new level of creative flexibility allowing you to mix and match hover effects, giving individual images their own overlay colors, metadata displays, animations, and interactive behaviors.

Video Hover Settings

Page/Post Settings

Starting with FolioBlocks 1.4, several controls that were previously located in the block’s Advanced settings have been moved to a dedicated FolioBlocks Page Settings panel in the Page/Post sidebar.

These features operate at the page level rather than the individual block level, so moving them out of the block settings creates a more intuitive editing experience and prevents the same feature from being enabled multiple times when a page contains several FolioBlocks blocks.

The FolioBlocks Page Settings panel is automatically added to the Page or Post sidebar whenever a FolioBlocks block is inserted into the WordPress editor. From this central location, you can configure settings that apply across the entire page, including the following features:

Password Protect Page

Requires a password before visitors can view the page.

Disable Right-Click on Page

Attempts to disable right-click to discourage casual image downloads.

Note: This makes it harder for casual users to save images, but it’s not foolproof — advanced users can still access media via the browser’s developer tools or view source.

Enable Lazy-Load of Images

When active, images load as the user scrolls, improving initial page load speed.

FolioBlocks Page Settings

Bellow is an example of the Video Gallery Block with Video Filtering enabled:


Common Questions

What video sources are supported?

You can use self-hosted MP4 files or embed videos from YouTube, Vimeo, or Bunny.net Stream.

How many videos can I add?

There is no limit on how many videos you can add.

Can I mix videos from different sources?

Yes — you can mix self-hosted, YouTube, and Vimeo videos within the same gallery.

Does it work with my WordPress theme?

For the best experience it is recommended to use a block based theme. However FolioBlocks does work with classic themes provided they support wp_block_styles and the block editor.

Is it compatible with WordPress 6.x or newer?

Absolutely. All FolioBlocks are built for the WordPress Block Editor (Gutenberg) and optimized for the latest WordPress versions. For the best experience we recommend WordPress 7.0 or higher.


Get Started

Ready to build your first filterable video gallery? Get FolioBlocks and start creating professional video galleries in the WordPress Block Editor (Gutenberg) today.