How To Build A Grid Gallery In Divi 5

by | Feb 5, 2026 | Etcetera | 0 comments

Pictures inform higher tales after they take a seat in blank, arranged grids. In Divi 5, you’ll be able to get there in two tactics: use the Gallery Module for a quick, acquainted setup, or use CSS Grid controls within the Visible Builder when you wish to have extra format freedom. Grids care for the construction for you, and Divi offers you the design equipment to show a easy choice of photographs into a refined, responsive, and interactive design.

On this publish, you’ll discover ways to configure grid settings, genre your photographs, and construct galleries that glance nice on each software, together with hover results, captions, and reusable presets. Right here’s the breakdown.

Grids In Divi 5

CSS Grid controls rows and columns concurrently, in contrast to Flexbox, which is designed for a unmarried axis at a time (row or column). With a grid, you’ll be able to set up each horizontal and vertical placement concurrently.

Grid generally calls for customized CSS and will also be difficult to grasp. However no longer within Divi 5. Divi 5 bakes CSS Grid without delay into the Visible Builder.
Sections, rows, columns, module teams, and modules all serve as as grid bins, and any module you drop within turns into a grid merchandise that follows the grid construction.

Grid settings are responsive at each stage. Maximum settings will also be adjusted according to breakpoint (desktop, pill, telephone). Regulate column counts on smaller monitors or turn the grid path fully for cell with out affecting different breakpoints.

That is the gadget for the gallery we’ll construct subsequent. The whole thing occurs thru dropdowns, sliders, and quantity fields whilst Divi handles the CSS within the background.

Construction A Grid Gallery In Divi 5

You’ve observed how grids paintings in Divi 5. Now we’ll use those self same controls to construct a real grid gallery. The stairs beneath display you how you can configure every environment to show your photographs into an arranged format. Let’s cross!

Upload The Grid To Your Web page

Click on the blue +  icon throughout the web page so as to add a brand new segment. You’ll see a choice of grid layouts seem. Divi provides templates for not unusual gallery types you may want, corresponding to:

  • Masonry: Pinterest-style columns with various merchandise heights. Perfect for images portfolios and combined side ratios.
  • Sidebar Taste: Extensive content material space paired with narrower panels. Appropriate for galleries with similar content material or filters.
  • Portfolio Grid: Asymmetrical cells the place featured pieces span a number of columns or rows. Creates rhythm with out forcing uniform sizing.

We’re the use of the two&instances;3 multi-row preset for this educational. We’ll use this as a base and enlarge on how you can make it extra fascinating later within the educational.

A screenshot of the grid layout we are selecting to build our grid gallery using Divi

As soon as you choose your preset, the grid construction seems for your canvas. Now upload an Symbol module to every cellular. Click on the grey + icon within a cellular, and drop the Symbol module in. Repeat this for each cellular for your grid.

Each and every Symbol module begins with a placeholder picture. Those will let you visualize the gallery construction ahead of you upload your precise footage. You’ll see precisely how the format works.

A screenshot of placeholder images placed in grids in Divi 5

With your entire placeholders in place, you’re in a position to configure the grid spacing and column habits.

Set Your Spacing

Open the Design tab of your grid row. Scroll down to search out Horizontal Hole and Vertical Hole. Those two settings keep an eye on the respiring room between your photographs.

A screenshot of the gap settings for a grid row in Divi 5

Hole values rely on what you’re development. Tighter gaps, round 5px to 10px, paintings neatly for portfolios and product catalogs the place you wish to have photographs to be shut in combination. Medium gaps of 15px to 20px give a balanced really feel for common galleries. Wider gaps of 30px or extra are appropriate for minimalist designs and editorial layouts, the place every picture calls for area.

For this gallery, we’ll set each Horizontal Hole and Vertical Hole to 20px. This helps to keep the format open with out spreading issues too a long way aside. The template already handles the format good judgment, so we’re simply environment gaps.

A screenshot of the horizontal and vertical gaps for grid gallery in Divi 5

If you wish to have tighter keep an eye on over your spacing throughout all of the website, take a look at our information on creating a gap-based spacing system with Divi 5. That publish covers how you can use Design Variables to control spacing consistency site-wide.

Make a selection Your Pictures

Each and every Symbol module for your grid lately displays a placeholder. Click on any placeholder to open that module’s settings panel. You’ll see the Symbol choice on the best of the Content material tab.

Click on that box to open the WordPress Media Library. Add new information or choose from present ones. Make a selection your picture and click on the blue button so as to add it. The placeholder disappears, and your precise picture seems in that grid cellular.

A screenshot of replacing the placeholder images with actual images

Repeat this procedure for each Symbol module for your grid. Click on the placeholder, select a picture, and transfer to the following cellular. Paintings during the grid systematically so that you don’t pass over any cells.

As soon as all placeholders are changed with actual photographs, your gallery takes form. The grid construction you configured previous helps to keep the entirety aligned and spaced persistently.

A screenshot of replacing all placeholder images with actual images

Enlarge And Customise Your Grid

Your grid gallery can develop as your wishes exchange. For your row settings, beneath the Component settings within the Content material tab, choose Upload Component, then choose a column. A brand new cellular seems for your grid. Drop an Symbol module within it.

See also  Introducing WPConsent – WordPress Privateness Compliance and Cookie Control Made Simple

A screenshot of how to add more columns to your gallery row

You’ll be able to additionally replica present columns. In the similar environment team, click on at the replica icon. The brand new cellular copies the entire styling from the unique, together with any Symbol module settings. This speeds issues up when you wish to have constant styling throughout a number of new photographs.

A screenshot of how to duplicate columns to add more to your gallery row

Complex Grid Configuration Choices

Maximum grid templates care for the format be just right for you. The preset we decided on creates a visible uniformity without having handbook changes. Alternatively, if you wish to have a extra prominent glance, you’ll be able to select every other template and use the Structure settings, which provide choices, particularly when developing intricate galleries with Divi 5 grids.

A screenshot of some of the grid templates available in Divi 5

Column Width and Row Heights can help you override how the template sizes cells. Equivalent, Auto, Fastened, and Guide modes every care for sizing another way. The Align Pieces and Justify Pieces controls place pieces inside of cells. Grid Density determines whether or not the grid fills gaps mechanically or preserves picture order.

For a whole breakdown of each grid environment and the way they paintings in combination, take a look at our publish on understanding every grid setting in Divi 5.

Taste Your Gallery Pictures

Each and every picture for your grid will also be connected, turning your gallery into a device other people in truth use. Click on any Symbol module, scroll to the Hyperlink choice within the Content material tab, and paste a URL. That picture now opens a product web page, weblog publish, portfolio piece, or another vacation spot you wish to have guests to visit. Linking photographs can flip a gallery into navigation, no longer simply ornament.

You’ll be able to additionally allow lightboxes for the pictures if wanted.

A screenshot of where to add a link and a lightbox to your gallery images

Past linking, the Design tab comprises the entire visible controls you wish to have. Upload borders to border your photographs. Observe field shadows for intensity.

A screenshot of how to add shadows to your gallery images

Regulate the nook radius to melt sharp edges.

A screenshot of how to add radius to your gallery images

Observe filters like grayscale, blur, or saturation to compare your emblem aesthetic. Some of these settings take a seat beneath their respective choice teams within the Design tab.

Hover results upload every other layer of interactivity. Divi 5 allows you to choose the hover state from a dropdown menu throughout the settings panel.

A screenshot of where to find the hover settings option

Pick out any design choice you wish to have to modify on hover, choose the hover state from the dropdown, and regulate the ones settings.

When anyone strikes their cursor over a picture, it transitions between the default and hover states. A refined border shift or shadow exchange would possibly point out to guests that the picture is clickable. You’ll be able to additionally upload a refined change into scale for additional highlighting.

Adjusting Column Construction For Cellular

Desktop monitors care for 4 or five-column galleries simply. Telephones don’t. Pictures shrink too small, textual content turns into unreadable, and guests pinch to zoom somewhat than browse. Exchange Column Construction fixes this via rebuilding layouts at every breakpoint independently.

Open your row settings, cross to the Content material tab, and turn to the telephone breakpoint the use of software icons within the Visible Builder toolbar.

A screenshot of how to switch to a specific device breakpoint

Click on Exchange Column Construction. Make a choice a construction that helps to keep photographs readable on smaller monitors.

A screenshot of how to switch to the layout on a breakpoint

Make a choice a 1&instances;1 construction. Your telephone now makes use of that construction, whilst the desktop remains unchanged.

A screenshot of the gallery using 1x1 layout on the phone breakpoint

Not unusual patterns paintings neatly throughout units. 3-column rows on desktop galleries will also be two on capsules and one on telephones. Product catalogs steadily use 4→2→1, whilst portfolio paintings generally is going 3→2→1.

Check every breakpoint ahead of publishing. Transfer between software perspectives to catch format issues early.

Upload Interactivity And Save Time With Presets

A gallery can beef up your site’s consumer revel in considerably if it serves a goal, like appearing related knowledge, past simply eye sweet. So on this segment, let’s cross over how you’ll be able to convey serve as in your gallery’s shape:

Including Labels With Module Teams

On this template, every grid cellular is constructed the use of a Column, so you’ll be able to position a number of modules within. That implies you’ll be able to upload a number of Symbol modules to a unmarried cellular if you wish to have. Drop two or 3 photographs right into a unmarried column, and so they’ll stack vertically inside of that grid cellular.

Combine single-image cells with multiple-image cells to create fascinating layouts. One cellular would possibly show a big hero picture, whilst every other displays 3 smaller product pictures stacked in combination. You’ll be able to additionally upload different modules, corresponding to textual content, buttons, and movies.

This adaptability allows you to become independent from from inflexible grid patterns. Your gallery stays arranged, but it doesn’t seem like another grid on the net.

However managing unfastened modules will get messy. Whilst you transfer or replica a cellular, every module sits independently. Duplicating or shifting modules turns into tougher as a result of modules are controlled personally. Styling turns into repetitive since you’re running with scattered components. Module Groups repair this. They package deal a number of modules right into a unmarried container that strikes, duplicates, and types them as a unmarried unit.

Click on the grey + icon in any cellular and choose the Crew module. Drag your present Symbol module into the Crew. Throughout the Crew settings, click on Upload Component, choose the Textual content module, and sort your caption and elegance your typography.

A screenshot of how to use the module group to group the gallery grid image as well as a caption

Upload a background colour, set padding to 10px, and regulate typography to compare your gallery genre. Now your picture and label transfer in combination as one piece.

A screenshot of styling the group module to make it stand out

You aren’t restricted to simply textual content right here. You’ll be able to upload buttons, icons, Blurbs, anything else that you are feeling provides in your footage.

Including Hover Divulge Results With Interactions

Alternatively, having a host of textual content beneath your photographs could make all of the format really feel crowded and crush your guests with knowledge overload. One of the simplest ways to have each shape and serve as is to stagger the guidelines and expose it best on motion, corresponding to a click on or hover.

Doing this the standard means will require numerous CSS or even JavaScript, however no longer with Divi 5. With Divi 5’s Interactions, you’ll be able to simply construct interactive components like popups, toggles, unearths, and extra in a couple of clicks, with out coding or finding out complicated ideas. You outline a cause, select an impact, and set a goal. That’s all you wish to have to construct an interplay.

See also  How to Choose a WordPress Theme in 2024 (9 Key Factors)

The usage of this as a concept, let’s construct an interplay to your photographs that highlights and divulges knowledge like captions, context, or attributes when your customer hovers over it. Right here’s how:

Label And Conceal Your Textual content Component

For this case, we’re retaining each the textual content added above and the background genre. Alternatively, the background genre is moved to the hover state, mixed with change into results, somewhat than the principle genre, for the reason that hover genre exchange will make the gallery stand out extra.

A screenshot of adding the grid gallery item's background, border and transform effects to the hover state in Divi 5

Open the Textual content module within your Module Crew. Pass to the Content material tab and to find Admin Label. Sort one thing descriptive like “Gallery Caption” or “Marcus Bellamy’s Caption”. This label is helping you goal the textual content when putting in the interplay.

A screenshot of adding an admin label for an image's caption in Divi 5

Nonetheless within the Textual content module, transfer to the Complex tab and open the Visibility settings. Flip it off for Desktop, Pill, and Telephone. The textual content disappears from view however stays within the code.

A screenshot of toggling hidden visibility to the image's caption in Divi 5

Create The Hover Interplay

Head in your Module Crew settings. Open the Complex tab, scroll, and upload an Interplay. Label it one thing suitable, like “Caption Divulge on Hover.”

Set Cause Tournament to Mouse Input. Below Impact Motion, choose Display Component. The Goal Module dropdown seems, appearing your Admin Labels. Make a selection the textual content label you created previous. Set Time Prolong to 200ms for a easy expose.

A screenshot of adding an interaction and what settings to use in Divi 5

Upload a 2d interplay the use of the replica button. Change the label to “Conceal Caption On Mouse Out”, Cause Tournament to Mouse Go out, and the Impact Motion to Conceal Component. Go away the Goal Module and Time Prolong as is.

A screenshot of duplicating an interaction and what settings to use for hiding caption in Divi 5

Now, soaring over any picture superbly displays the textual content content material with results that construct interest. The similar will also be finished to another module you intend so as to add in your module team.

Save Time With Presets

Talking of time saving, you don’t want to genre each picture personally. After getting configured one picture precisely as you wish to have it, save the ones settings as an Component Preset or an Choice Crew Preset.

Click on the preset icon on the best proper of the Symbol module settings panel. Make a selection New Preset From Present Kinds, give it a reputation, and save.

A screenshot of where to find the element preset option for your gallery image

Now each different picture for your grid can use that preset. Open any Symbol module, click on the preset icon, and choose your stored preset from the listing. All of your styling applies right away. That’s how Component Presets paintings. They seize a component’s settings so you’ll be able to reuse them persistently.

For extra keep an eye on, use Choice Crew Presets. Those mean you can save explicit styling teams, corresponding to field shadows, borders, or filters, one by one. Hover over any choice team panel, like Field Shadow or Border, click on the preset icon, and save simply the ones settings.

A screenshot of where to find the option group preset option for the various design settings for your gallery image

This will get tough while you combine them. Observe the similar field shadow to all photographs the use of an Choice Crew Preset, however best upload borders and nook radius in your heart piece photographs. You’re no longer locked into styling the entirety the similar means. Pick out which components get which types with out rebuilding from scratch every time.

You’ll be able to additionally save Interactions as Choice Crew Presets to reuse in every merchandise of your gallery, which is able to get tedious if finished separately. The setup stays the similar: label and conceal the textual content, open any column, cross to Interactions, click on the preset icon, and choose your stored preset. Each hover interactions practice right away. Simply replace the objective components.

A screenshot of how to create an option group preset for Interactions in Divi 5

Replace both preset kind globally later to modify each connected picture throughout your website. Taste and set as soon as, practice selectively, replace in every single place when wanted.

Use Case: Developing A Fullwidth Gallery

Now that you understand how you’ll be able to construct a grid gallery the use of Divi 5, let’s stretch issues out via development a Fullwidth Gallery.

This kind of gallery spans all of the viewport, edge to edge. Fullwidth galleries paintings easiest when photographs want most respiring room. Pictures portfolios acquire have an effect on when pictures fill the display with out synthetic obstacles. Style and way of life websites have the benefit of the immersive really feel. Editorial layouts glance extra magazine-like when visuals fill the entire width, amongst different issues.

Surroundings this up takes simply width changes and an opening determination. Right here’s how you can set it up:

Configure Widths

Get started along with your segment. Open the segment settings, cross to the Design tab, and to find Sizing. Set each Width and Max Width to 100%. This gets rid of Divi’s default container restrictions, permitting the segment to span the entire viewport.

A screenshot of how to set the gallery section width as 100%

Then set the highest and backside padding of the segment to 0.

A screenshot of how to set the 0 top and bottom section padding

However the segment on my own gained’t do it. Rows inside of sections have their very own width constraints and padding, developing margins on each side. Open your row settings, navigate to Design and Sizing, then set Width and Max Width to 100% there too.

Now, your gallery container stretches edge-to-edge. The segment fills the viewport, and the row within fits that width with none leftover margins.

A screenshot of how to set 100% width on the gallery rows

Construct A Gallery

The gallery development procedure remains the similar as what we lined previous. Right here, we’re the use of the similar gallery we constructed above.

You’ll be able to switch to another template. A three&instances;3 grid works for smaller collections. 5&instances;five or six&instances;6 grids care for greater units. Should you’re development a images portfolio or editorial gallery the place visible selection issues greater than uniformity, the Masonry templates come up with that Pinterest-style go with the flow.

If ranging from scratch, click on the blue + icon so as to add a bit, and the template selector seems with all to be had grid layouts. After settling on your template, upload Symbol modules and corresponding footage to every cellular. The fullwidth container you configured previous handles the remainder, stretching your gallery throughout all of the viewport.

See also  7 Creative Gradients For Divi 5 (Free Download!)

A screenshot of of a basic fullwidth gallery built with Divi 5

Regulate Grid Cellular Gaps

Pass to the row settings, open the Design tab, and beneath Structure, set each Horizontal Hole and Vertical Hole to 0px. This gets rid of all spacing so photographs contact edge to edge, developing a unbroken wall of footage around the viewport. It really works neatly for editorial layouts, collages, or any design that wishes a continuing visible go with the flow.

0 gaps are non-compulsory. Small gaps between 5px and 10px swimsuit product shows or structure paintings the place slight separation is helping. Style lookbooks steadily use 10px to 15px to offer photographs respiring room whilst retaining a fullwidth really feel.

Gaps of 20px or extra create a extra gallery-style glance, ultimate for way of life or emblem storytelling the place every picture stands by itself.

Bonus: The usage of Grid Offsets To Construct Attention-grabbing Galleries

The ones grid templates we confirmed you previous all use Grid Offset Laws beneath the hood. Divi preconfigured the ones offset regulations to compare widespread format patterns like masonry grids and portfolio layouts, so that you get skilled effects with out touching any settings.

However you’re no longer restricted to these prebuilt templates. The similar offset gadget that powers the ones templates is Grid Offset Laws, which offers you keep an eye on over which grid cellular (or picture on this case) breaks out of computerized placement. This allows you to construct layouts that fit your explicit wishes, somewhat than adapting your content material to suit a template.

The usage of this, we will be able to make a picture and cells span a number of columns or rows. Pin a picture to a precise grid place. Let’s take a look at one of the crucial examples you’ll be able to construct with offsets:

Highlighting Pieces At Periods

Development-based concentrated on allows you to emphasize explicit photographs with out manually configuring every one. Open your row settings and navigate to the Design tab. Scroll all the way down to Structure and to find Grid Offset Laws. Click on the + icon so as to add a brand new rule.

The Admin Label box allows you to identify the rule of thumb for simple id when managing a number of offset regulations. Sort one thing descriptive, corresponding to “Function Each 7th,” so you’ll be able to to find it later.

Set Goal Offset to Each X Merchandise from the dropdown. We’re the use of 7th for example. This tells Divi to use the rule of thumb to pieces 7, 14, 21, and so forth as your gallery grows.

A screenshot of selecting the seventh item target offset from the dropdown

Set Offset Rule to Column Span. This controls how broad the centered photographs turn into. We set the Offset Worth to three.

A screenshot of adding a column span grid offset rule for a gallery grid item in Divi 5

Each 7th merchandise on this gallery spans 3 columns, making a rhythm the place featured photographs seem at common periods.

A screenshot of how the seventh item offset looks (zoomed out for proper capture)

This trend works neatly for product galleries that spotlight bestsellers or new arrivals at constant periods. Exchange the period quantity to compare your content material wishes. Each 3rd Merchandise creates extra common highlights, whilst Each 10th Merchandise helps to keep them sparse.

Developing A Featured Symbol Structure

A featured picture at the beginning of your gallery attracts consideration in your maximum necessary content material. This works neatly for portfolio showcases the place you wish to have one hero shot adopted via supporting photographs.

Upload a brand new Grid Offset Rule. Set Goal Offset to First Merchandise, Offset Rule to Column Span, and Offset Worth to two. The outlet picture now takes up two times the width of standard gallery pieces.

A screenshot how the featured image grid offset looks in practice in Divi 5

This method helps to keep your gallery arranged whilst giving visible weight to the content material that merits it. The primary merchandise anchors the format, and the entirety else flows naturally round it.

Construction An Asymmetrical Gallery

Asymmetrical layouts create visible hobby via breaking clear of uniform grid patterns. As a substitute of each picture sitting in similar cells, you combine other sizes to steer the viewer’s eye thru your gallery. This works in particular neatly for inventive portfolios, editorial layouts, and emblem showcases the place you wish to have a extra dynamic presentation.

Mix a number of offset regulations that concentrate on other pieces. Get started along with your first rule: Goal First Merchandise, set Column Span to two. This establishes your anchor level.

Upload a 2d rule: Goal Each 3rd Merchandise, set Row Span to two. Now each 3rd picture for your gallery stretches vertically, developing tall focal issues that interrupt the horizontal go with the flow.

A screenshot how the Asymmetrical Gallery in practice in Divi 5

This layered method prevents your gallery from feeling formulaic. Guests see selection with out chaos for the reason that underlying grid construction helps to keep the entirety aligned. The rhythm remains arranged whilst having a look spontaneous.

Regulate the period numbers in keeping with your gallery measurement. Smaller galleries want decrease periods to turn the trend. Higher galleries can use upper periods with out dropping the impact.

Check out Construction Customized Galleries In Divi 5 Nowadays!

Construction grid galleries in Divi 5 offers you keep an eye on over picture placement and spacing with out requiring code changes. The grid gadget handles responsive habits mechanically, permitting you to concentrate on the visible design.

Additionally, past simply development a fundamental gallery, you’ll be able to give them many extra purposes with Interactions. All of this, with none coding. Those identical grid controls paintings throughout all of your website, so the abilities you picked up right here practice to any format you construct subsequent.

Obtain it now and get started making use of those grids in your personal tasks.

The publish How To Build A Grid Gallery In Divi 5 seemed first on Elegant Themes Blog.

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!