DG Masonry Gallery · Divi 5 & Divi 4
Divi Masonry Gallery with Filters and Lightbox
Show photos in tidy columns where every image keeps its own shape. Visitors filter by category, page through the set and open any photo in a lightbox, all set up in the Divi Builder.
Live gallery: filter the rooms, hover a photo for its note, click to open the lightbox. Photos from a fictional interior studio.
Examples
Masonry gallery examples for real sites
Three galleries built with the same module and different settings. Each label lists what was changed. More layouts are on the Masonry Gallery demo page.
01 ONLINE SHOP
Jewelry and beauty shop
Shoppers switch between jewelry and beauty with the filter buttons and page through six products at a time. On hover, an animated border frames the price.
Columns3 · tablet 3 · phone 2
FilterJewelry, Beauty
Pagination6 per page
HoverCorner border animation
ClickLightbox, pill title
02 FITNESS STUDIO
Class wall in a new order every visit
Random Image Load shuffles the photos on each page load, so returning members see a fresh wall. Directional hover slides the class time in from the side the cursor enters.
Columns4 · tablet 3 · phone 2
OrderRandom on every load
HoverDirectional, blur
OverlayTerracotta to clear
ClickLightbox, bar title
03 RESTAURANT
Menu photos with the dish name always on
Always Show Description keeps each dish name on the photo, so the gallery reads like a menu even on phones, where nobody hovers. Clicking opens a larger view.
Columns3 · tablet 2 · phone 1
TextDescription always shown
HoverPan up
Space18 px between photos
ClickLightbox, flow preloader
Features
Divi masonry gallery features
Everything below is a setting in the module, in Divi 5 and Divi 4. No custom code or extra plugin.
01
Columns per device
Show 1 to 8 images per row, set separately for desktop, tablet and phone, with your own space between them.
02
Shareable filters
Give each image categories in the Media Library and the module builds a button for each. The chosen filter goes into the page URL, so a shared link opens that category.
03
Pagination
Split large sets into pages, choose items per page and alignment, and colour the pager.
04
Random order
Random Image Load shuffles the gallery on every page load.
05
Five click actions
Lightbox, media file, attachment page, a custom URL per image, or no link at all.
06
Lightbox styling
Title as block, pill, transparent or bar, an optional top bar, 10 preloaders and fit-to-window images.
07
Hover effects
Advanced hover with 9 image effects, zoom level and 9 text positions, or directional hover that follows the cursor.
08
Overlay and borders
A gradient overlay with your own colours and direction, plus 19 animated border styles.
How to
How to create a masonry gallery in Divi
- Add the module. In the Divi Builder, add DG Masonry Gallery to a row.
- Choose the photos. Under Gallery Images, pick or upload the images in the order you want.
- Set the columns. Set Image To Display for desktop, tablet and phone, and the space between items.
- Add filters (optional). In the Media Library, type categories in each image’s Divigrid - Category field, separated by commas, then turn on Filter Navigation.
- Style the hover and lightbox. Pick the hover type, overlay, border animation, click action and lightbox look.
For a longer walkthrough with screenshots, read our guide to showcasing images with a Divi masonry gallery, or the module documentation.
Masonry or justified?
Masonry keeps every column the same width and lets photos differ in height: good for portrait-heavy sets, products and Pinterest-style boards.
If your photos are mostly landscape and you want straight, even rows, a justified gallery fits better.
REVIEWS
Voices of Satisfaction
Hear directly from our cherished clients.
★★★★★
“
DiviGrid made my portfolio look professional without any developer help. The filterable grid module saved me hours of work!
Mohammad Sobhy
★★★★★
“
Customer service is fantastic the DiviGrid and Divi Image Mask Slider are winners and that starts with a great team backing them. Lots of unique options thanks for the support

Tim Kerney
★★★★★
“
It’s a wonderful world to discover. However, I would appreciate some improvement in: – translation (french for instance) – documentation (the search engine is too weak).

Pierre Moser
★★★★★
“
I’ve had almost no issues with Divigrid – like maybe 2 in one year. Their support was immediate and with a resolution. I’ve been working with WordPress & Divi for over six years now and have tried many plugin module developers. Divi Grid has given me consistently excellent results so their plugins are my primary choice.

Bonnie Unsworth
★★★★★
“
A fantastic selection of plugins which are intuitive to use. When I had a query support was on hand and very quick to resolve my question.

Heather Pedley
★★★★★
“
Great software at an amazing price. I like it.

Pedro de Pradines
★★★★★
“
This is a great plugin. there is no doubt. work well all features are like magic. requesting you divigrid team to create tutorials also on YouTube for some advanced options and open a forum site. It has vast features to talk about.

Shezan Ahmed
★★★★★
“
I’m relatively new to Divi, but found this plug-in to be very helpful making a site just the way I want to see it without having to jugle other items.

Thomas Bogan
★★★★★
“
I’m so happy with customer service! While I’m not a beginner with Divi I needed help and it came quickly. I’m really enjoying everything I can do with the content grid and can’t wait to get into the list grid!
Valerie Robitaille
FAQ
Divi masonry gallery FAQ
Answers to what people ask before adding a masonry gallery to a Divi site.
A masonry gallery places photos in columns of equal width. Each photo keeps its own height, so the images stack without gaps, much like a Pinterest board.
Add the DG Masonry Gallery module to a row, choose your images under Gallery Images, set how many images show per row on each device, then style the hover effect and lightbox.
Yes. DiviGrid includes the Masonry Gallery module for both Divi 5 and Divi 4.
Open each image in the Media Library and type one or more categories in its “Divigrid - Category” field, separated by commas. Turn on Filter Navigation and the module shows a button for each category.
Yes. Image To Display is set per device, from 1 to 8 images per row.
Yes. Set Action Type to Custom URL and add the address in the image’s “Divigrid - URL” field. Other options are the lightbox, the media file, the attachment page or no link.
Masonry uses columns of equal width with photos of different heights. A justified gallery uses rows of equal height with photos of different widths. See the Justified Gallery module.
Read the Masonry Gallery documentation or contact DiviGrid support.
Keep exploring
Related Divi modules
Looking for something else? Browse all DiviGrid modules or see the Divi 5 plugin compatibility list.
Get started
Hang your best work on a wall that fits it
The Masonry Gallery module comes with DiviGrid, together with the rest of the module collection.





































