Updated: June 25th, 2026 for FolioBlocks Version 1.4
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 Justified Gallery Block in FolioBlocks lets you create stunning, edge-to-edge photo galleries directly inside the WordPress Block Editor (Gutenberg) — no short-codes, no settings screens, no fuss.
Table of Contents
What Is the Justified Gallery Block?
The Justified Gallery Block arranges your images in rows and automatically adjust their height to fill the available space, maintaining each image’s aspect ratio while keeping the rows perfectly aligned.
This elegant gallery style was popularized by Flickr, and is often referred to as the “Flickr layout” — a balanced, edge-to-edge design that shows images at their natural proportions without awkward cropping.
Perfect for:
- Landscape-oriented photography
- Event or travel galleries
- Editorial and journalistic image collections
- Full-width portfolios with a modern, professional look
How to Add the Justified Gallery Block

1. Insert the Block
In the WordPress Block Editor, click the ➕ Add Block button and search for “Justified Gallery.” You’ll find it under the FolioBlocks section.
Another option to add the block is to type / followed by the block name (Justified Gallery) from inside the block editor.
2. Upload or Select Images
Once you have placed the Justified Gallery block into the Editor a placeholder will invite you to choose images from the Media Library or upload new ones in order to create your gallery.

3. Adjust Gallery Width & Moving Images
Use the alignment controls in the Justified Gallery block’s toolbar to select Content Width, Wide Width, or Full Width.

Because the gallery images are added as inner blocks re-arranging them is super simple. You can select images at once reorder them later by dragging and dropping directly in the editor or using the List View panel.


Understanding the Gallery & Image Block Panels
The Justified Gallery Block is built using Inner Blocks, meaning each image in the gallery is its own individual Image Block. Both the main gallery block and each Image Block share the same three-panel layout in the WordPress Block Editor:
Content Panel
The Content panel contains controls related to the content of the selected block.
For the parent Gallery Block it list all of the images in the gallery, acting as an additional place to drag and drop to re-arrange images, or add images.
On individual Image Blocks, the Content panel contains image-specific information such as the image title, caption, description, alt text, and Filter Categories when image filtering is enabled.


Settings Panel
The Settings panel contains the functional behavior of the block.
For the parent Gallery Block this is where you’ll find controls such as General Gallery Settings, Gallery Click Settings, Gallery Hover Settings, and Gallery Filter Settings.
When an individual Image Block is selected, the Settings panel contains image-specific options to override the gallery set Gallery Click Settings and Gallery Hover Settings.


Styles Panel
The Styles panel contains all visual styling options.
For the Justified Gallery Block this includes settings for the gallery background, spacing, borders, drop shadows, filter bar styling, and other appearance-related controls.
Throughout the rest of this guide, we’ll reference these three panels as we explore each feature of the Justified Gallery Block.


General Gallery Settings
Resolution
Choose between Thumbnail, Medium, Large, or Full image sizes to balance sharpness and page load speed.
Row Height
The Row Height slider lets you set your desired target row height (e.g., 250px) for Desktop, Tablet, & Mobile. The block will automatically scale images to fill the available space evenly, maintaining proper spacing.
Gap Between Items
The Gap Between Items slider allows you to define the amount of space between images with options to set different values for Desktop, Tablet, and Mobile.
Randomize Image Order
Enable this option to shuffle image order on each page load — ideal for giving repeat visitors a fresh gallery experience.

Gallery Click Settings

As of version 1.3 of FolioBlocks all features related to what happens when you click on a gallery images are grouped into a panel called Gallery Click Settings. Clicking on the Image Click Behavior drop down reveals the following options: None, Open in Lightbox, Enable Image Downloads, Link Image to Media File, Link Image to Custom URL, Link Image to Page/Post, or WooCommerce Product.
Note: WooCommerce Product only displays is WooCommerce is installed and active
Lightbox
Selecting Open in Lightbox in the Image Click Behavior dropdown will activate the Lightbox on the website’s front-end. The Lightbox supports keyboard navigation and swipe gestures and full-screen mode.
When Open in Lightbox is selected in Image Click Behavior a control for “Lightbox Appearance” allows you to switch between the Lightbox’s Light & Dark modes.
An additional dropdown titled “Lightbox Content” allows you to select what displays inside of the Lightbox alongside the image. You can select from:
- None
- Show Image Title
- Show Image Caption
- Show EXIF Data
- Show Image Title & EXIF Data
- Show Image Caption & EXIF Data
- Show Image Title & Caption
- Show Image Title, Caption, & EXIF Data

Enable Image Downloads

Selecting Enable Image Downloads in the Image Click Behavior dropdown will make all of the gallery images link to the source file so they are available for download in the front-end of the website.
The Link Target drop down allows to decide if you want the link to be placed on an icon or on the thumbnail image.
The Display Image Download Icon drop down allows you select if the Download icon is always displayed, displayed on hover, or never displayed.
Note: With Enable Image Downloads selected an additional control is added into the gallery block’s Styles panel. This control allows you to set the color of the Download icon as well as its background color.
Finally the Enable Lightbox control allows you to toggle and activate the Lightbox, when activated will display additional Lightbox controls for Lightbox Appearance and Lightbox Content.
Note: This is only available when the Link Target dropdown set to Link Target Icon.
Link Image to Media File
Selecting Link Image to Media File in the Image Click Behavior dropdown will make all the gallery thumbnails link to their source file. However clicking the link will not trigger a download but open the source file in the browser.
This setting is useful is you want to use a 3rd party Lightbox rather than the Lightbox that is included with FolioBlocks.

Link Image to Custom URL

Selecting Link Image to Custom URL in the Image Click Behavior dropdown will allow you to link the gallery images to custom urls. Linking is done on the individual Image blocks from a search field that is added to their Settings panel.
Note: Images that are not linked will not have an empty hyperlink added.
The Link Target drop down allows to decide if you want the link to be placed on an icon or on the thumbnail image.
The Display Link Target Icon drop down allows you select if the Link icon is always displayed, displayed on hover, or never displayed.
Note: With Link Image to Custom URL selected an additional control is added into the gallery block’s Styles panel. This control allows you to set the color of the Link icon as well as its background color.
Finally the Enable Lightbox control allows you to toggle and activate the Lightbox, when activated will display additional Lightbox controls for Lightbox Appearance and Lightbox Content.
Note: This is only available when the Link Target dropdown set to Link Target Icon.
When the Image Click Behavior setting on the gallery block is set to Link Image to Custom URL, you can then select any individual Image Block within the gallery and link it directly to a custom URL.
To do this, open the Image Block’s Settings panel and expand the Image Click Settings panel. There you’ll find a searchable field that lets you quickly enter a custom URL.
For faster access, a Link button is also available in the Image Block toolbar. Clicking this button opens the same URL selection interface.

Link Image to Page/Post
Selecting Link Image to Page/Post in the Image Click Behavior dropdown will allow you to link the gallery images to Pages or Posts on your WordPress site. Linking is done on the individual Image blocks from a search field that is added to their Settings panel.
Note: Images that are not linked will not have an empty hyperlink added.
The Link Target drop down allows to decide if you want the link to be placed on an icon or on the thumbnail image.
The Display Link Target Icon drop down allows you select if the Link icon is always displayed, displayed on hover, or never displayed.
Note: With Link Image to Page/Post selected an additional control is added into the gallery block’s Styles panel. This control allows you to set the color of the Link icon as well as its background color.
Finally the Enable Lightbox control allows you to toggle and activate the Lightbox, when activated will display additional Lightbox controls for Lightbox Appearance and Lightbox Content.
Note: This is only available when the Link Target dropdown set to Link Target Icon.


When the Image Click Behavior setting on the gallery block is set to Link Image to Page/Post, you can then select any individual Image Block within the gallery and link it directly to a page or post on your WordPress site.
To do this, open the Image Block’s Settings panel and expand the Image Click Settings panel. There you’ll find a searchable field that lets you quickly find and select page or post from your WordPress website.
For faster access, a Link button is also available in the Image Block toolbar. Clicking this button opens the same Page/Post selection interface.
WooCommerce Product

Selecting WooCommerce Product from the Image Click Behavior dropdown will allow you to link the gallery images to WooCommerce products in your WordPress website. Linking is done on the individual Image blocks from a search field that is added to their Settings panel.
Note: Option will only be available when the WooCommerce plugin is installed and active. Images that are not linked will not have an empty hyperlink added.
The Default Product Link Behavior dropdown allows to decide if you want the link to add a product to your shopping cart or if you want the link to go to the selected product’s page.
The Link Target drop down allows to decide if you want the link to be placed on an icon or on the thumbnail image.
The Display Add To Cart Icon drop down allows you select if the Link icon is always displayed, displayed on hover, or never displayed.
Note: With WooCommerce Product selected an additional control is added into the gallery block’s Styles panel. This control allows you to set the color of the Add To Cart icon as well as its background color.
Finally the Enable Lightbox control allows you to toggle and activate the Lightbox, when activated will display additional Lightbox controls for Lightbox Appearance and Lightbox Content.
Note: This is only available when the Link Target dropdown set to Link Target Icon.
When the Image Click Behavior setting on the gallery block is set to WooCommerce Product, you can then select any individual Image Block within the gallery and link it directly to a product in your WooCommerce store.
To do this, open the Image Block’s Settings panel and expand the Image Click Settings panel. There you’ll find a searchable field that lets you quickly find and select any product from your WooCommerce catalog.
For faster access, a Shopping Cart button is also available in the Image Block toolbar. Clicking this button opens the same product selection interface.

Gallery Hover Settings
From the Gallery Hover Settings panel you can set if images will display an overlay when you hover over them.
Hover Style
The Hover Style dropdown allows you to select from:
- None
- Fade Overlay
- Gradient Bottom
- Chip
- Color Overlay
Notes: With the Color Overlay or Chip selected you can additionally customize the color of the text and background of the Overlay by going to the Styles panel and the Gallery Hover Styles section.
Overlay Content
The Overlay Content drop down allows you to select what displays inside the overlay when you hover above an image. You can select from:
- Show Image Title
- Show Image Caption
- Show EXIF Data
- Show Product Info
Notes: Show Product Info option is only available when gallery or image is linked to WooCommerce.

Gallery Filter Settings
Enable Image Filtering
When filtering is enabled, you can assign categories to images (e.g., “Sports,” “Portraits,” “Events”) and allow visitors to toggle between them.
First you have the Filter Bar Alignment settings which allows you set the alignment of the bar with your added categories (e.g., “All, Sports, Portraits, Events”).
Then you have the Filter Categories input. Here you can add your filter categories (e.g. “Portraits, Events, Landscape”) separated by commas.
Once you have added your categories you can now select the individual images inside your gallery Block and in the block Content panel there will be a new Filter Categories panel where you can apply one or more of the categories to the image.
Note: Additional style options for the Filter Bar are available in the blocks style settings panel.

Gallery Styles Panel

Background
The Background setting allows you to customize the backdrop behind your Justified Gallery block. You can choose any color from your theme palette or define a custom color to help your images stand out or blend seamlessly with the surrounding layout.
A subtle background tone can make white borders or drop shadows more visible, while a dark background often enhances contrast and gives a cinematic look.
Dimensions – Padding & Margin
The Padding and Margin controls give you fine-grained control over the spacing inside and around your Justified Gallery block.
Use Padding to create breathing room between your gallery content and its edges — useful for highlighting the gallery within a colored background.
Use Margin to control the outer spacing between the gallery and adjacent blocks or page sections, ensuring perfect alignment and balance within your overall page design.
Gallery Image Styles
Border Color, Width, & Radius
These settings allow you to add custom borders to the images in your gallery. Select the color of your border and then adjust the border width slider to your liking.
The images in the editor update in real time so you can see how they look without having to visit the front end of the site.
Border Radius slider allows you to add a radius to the corner of the images to further create special effects.
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 Image Filtering is active the Filter Bar Styles panel will be present in the Grid 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.
Per-Image Overrides for Gallery Click & Hover Settings
Starting with FolioBlocks 1.4, individual Image Blocks within the any gallery block can now override the gallery’s default Click Settings and Hover Settings.
Simply select an image inside the gallery and enable either Override Gallery Click Settings or Override Gallery Hover Settings in the Image Block settings panel. Once enabled, the same controls available at the gallery level become available for that specific image, allowing you to customize its behavior independently of the rest of the gallery.
This feature unlocks a new level of creative flexibility. For example, you can create a gallery where most images open in the Lightbox, while selected images link to pages, posts, external URLs, or WooCommerce products. You can also mix and match hover effects, giving individual images their own overlay colors, metadata displays, animations, and interactive behaviors.
The result is a gallery experience that can be tailored on an image-by-image basis, making it easier than ever to highlight important content, guide visitors through your site, or create more engaging visual layouts.

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.

Example Justified Gallery
Below is an example of a Justified Gallery created with FolioBlocks:




























Common Questions
How many images can I add?
There are no limits on how many images you can add.
Can I reorder or replace images?
Yes — drag and drop directly in the editor or reorder via the List View.
Does it work with my 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. FolioBlocks are built for the WordPress Block Editor (Gutenberg) and optimized for modern WordPress standards. For the best experience we recommend WordPress 7.0 or higher.
Get Started
Ready to build your first justified gallery? Download FolioBlocks for free or upgrade to Pro for advanced features like filtering, downloads, and WooCommerce integration.
Get FolioBlocks and start creating stunning, responsive galleries in the WordPress Block Editor today.
