Footage inform higher tales after they sit down in blank, arranged grids. In Divi 5, you’ll get there in two techniques: use the Gallery Module for a quick, acquainted setup, or use CSS Grid controls within the Visible Builder when you need extra structure freedom. Grids maintain the construction for you, and Divi provides you with the design gear to show a easy choice of photographs into a sophisticated, responsive, and interactive design.
On this submit, you’ll learn to configure grid settings, genre your photographs, and construct galleries that glance nice on each instrument, 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 set up each horizontal and vertical placement concurrently.
Grid in most cases calls for customized CSS and will also be difficult to grasp. However now not within Divi 5. Divi 5 bakes CSS Grid immediately into the Visible Builder.
Sections, rows, columns, module teams, and modules all serve as as grid packing containers, 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 in line with breakpoint (desktop, pill, telephone). Modify column counts on smaller displays or turn the grid path solely for cellular 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 noticed how grids paintings in Divi 5. Now we’ll use those self same controls to construct a real grid gallery. The stairs under display you learn how to configure each and every surroundings to show your photographs into an arranged structure. Let’s pass!
Upload The Grid To Your Web page
Click on the blue + icon within the web page so as to add a brand new segment. You’ll see a collection of grid layouts seem. Divi provides templates for not unusual gallery kinds you may want, reminiscent of:
- Masonry: Pinterest-style columns with various merchandise heights. Highest for images portfolios and blended side ratios.
- Sidebar Taste: Large content material house paired with narrower panels. Appropriate for galleries with comparable 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×3 multi-row preset for this instructional. We’ll use this as a base and enlarge on learn how to make it extra attention-grabbing later within the instructional.

As soon as you choose your preset, the grid construction seems for your canvas. Now upload an Symbol module to each and every cellular. Click on the grey + icon within a cellular, and drop the Symbol module in. Repeat this for each cellular for your grid.
Every Symbol module begins with a placeholder picture. Those let you visualize the gallery construction sooner than you upload your exact footage. You’ll see precisely how the structure works.

With all of your placeholders in place, you’re in a position to configure the grid spacing and column conduct.
Set Your Spacing
Open the Design tab of your grid row. Scroll down to seek out Horizontal Hole and Vertical Hole. Those two settings keep an eye on the respiring room between your photographs.

Hole values rely on what you’re construction. Tighter gaps, round 5px to 10px, paintings smartly for portfolios and product catalogs the place you need photographs to be shut in combination. Medium gaps of 15px to 20px give a balanced really feel for normal galleries. Wider gaps of 30px or extra are appropriate for minimalist designs and editorial layouts, the place each and every picture calls for house.
For this gallery, we’ll set each Horizontal Hole and Vertical Hole to 20px. This helps to keep the structure open with out spreading issues too some distance aside. The template already handles the structure common sense, so we’re simply surroundings gaps.

If you need tighter keep an eye on over your spacing throughout all the website, take a look at our information on making a gap-based spacing gadget with Divi 5. That submit covers learn how to use Design Variables to control spacing consistency site-wide.
Choose Your Photographs
Every Symbol module for your grid these days presentations a placeholder. Click on any placeholder to open that module’s settings panel. You’ll see the Symbol possibility on the most sensible of the Content material tab.
Click on that box to open the WordPress Media Library. Add new recordsdata or choose from present ones. Choose your picture and click on the blue button so as to add it. The placeholder disappears, and your exact photograph seems in that grid cellular.

Repeat this procedure for each Symbol module for your grid. Click on the placeholder, make a selection a picture, and transfer to the following cellular. Paintings in the course of the grid systematically so that you don’t leave out 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 whole lot aligned and spaced persistently.

Make bigger And Customise Your Grid
Your grid gallery can develop as your wishes trade. On your row settings, underneath the Component settings within the Content material tab, make a selection Upload Component, then make a selection a column. A brand new cellular seems for your grid. Drop an Symbol module within it.

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

Complex Grid Configuration Choices
Maximum grid templates maintain the structure be just right for you. The preset we decided on creates a visible uniformity without having handbook changes. On the other hand, if you want a extra prominent glance, you’ll make a selection any other template and use the Structure settings, which give choices, particularly when growing intricate galleries with Divi 5 grids.

Column Width and Row Heights allow you to override how the template sizes cells. Equivalent, Auto, Mounted, and Guide modes each and every maintain sizing in a different way. The Align Pieces and Justify Pieces controls place pieces inside cells. Grid Density determines whether or not the grid fills gaps robotically or preserves picture order.
For an entire breakdown of each grid surroundings and the way they paintings in combination, take a look at our submit on working out each grid surroundings in Divi 5.
Taste Your Gallery Photographs
Every picture for your grid will also be related, turning your gallery into a device other people in reality use. Click on any Symbol module, scroll to the Hyperlink possibility within the Content material tab, and paste a URL. That picture now opens a product web page, weblog submit, portfolio piece, or some other vacation spot you want guests to visit. Linking photographs can flip a gallery into navigation, now not simply ornament.
You’ll be able to additionally allow lightboxes for the pictures if wanted.

Past linking, the Design tab incorporates all of the visible controls you want. Upload borders to border your photographs. Follow field shadows for intensity.

Modify the nook radius to melt sharp edges.

Follow filters like grayscale, blur, or saturation to check your emblem aesthetic. A lot of these settings sit down underneath their respective possibility teams within the Design tab.
Hover results upload any other layer of interactivity. Divi 5 allows you to make a selection the hover state from a dropdown menu throughout the settings panel.

Pick out any design possibility you need to modify on hover, make a selection the hover state from the dropdown, and modify the ones settings.
When any individual strikes their cursor over a picture, it transitions between the default and hover states. A delicate border shift or shadow trade may point out to guests that the picture is clickable. You’ll be able to additionally upload a delicate turn into scale for additional highlighting.
Adjusting Column Construction For Cellular
Desktop displays maintain 4 or five-column galleries simply. Telephones don’t. Photographs shrink too small, textual content turns into unreadable, and guests pinch to zoom moderately than browse. Trade Column Construction fixes this via rebuilding layouts at each and every breakpoint independently.
Open your row settings, pass to the Content material tab, and turn to the telephone breakpoint the use of instrument icons within the Visible Builder toolbar.

Click on Trade Column Construction. Make a selection a construction that helps to keep photographs readable on smaller displays.

Make a selection a 1×1 construction. Your telephone now makes use of that construction, whilst the desktop remains unchanged.

Commonplace patterns paintings smartly throughout units. 3-column rows on desktop galleries will also be two on drugs and one on telephones. Product catalogs ceaselessly use 4→2→1, whilst portfolio paintings in most cases is going 3→2→1.
Take a look at each breakpoint sooner than publishing. Transfer between instrument perspectives to catch structure issues early.
Upload Interactivity And Save Time With Presets
A gallery can reinforce your site’s consumer revel in considerably if it serves a objective, like appearing related knowledge, past simply eye sweet. So on this segment, let’s pass over how you’ll convey serve as in your gallery’s shape:
Including Labels With Module Teams
On this template, each and every grid cellular is constructed the use of a Column, so you’ll position a number of modules within. That suggests you’ll upload a number of Symbol modules to a unmarried cellular if you need. Drop two or 3 photographs right into a unmarried column, they usually’ll stack vertically inside that grid cellular.
Combine single-image cells with multiple-image cells to create attention-grabbing layouts. One cellular may show a big hero picture, whilst any other presentations 3 smaller product pictures stacked in combination. You’ll be able to additionally upload different modules, reminiscent of 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 appear to be some other grid on the net.
However managing unfastened modules will get messy. Whilst you transfer or reproduction a cellular, each and every module sits independently. Duplicating or shifting modules turns into tougher as a result of modules are controlled for my part. Styling turns into repetitive since you’re running with scattered parts. Module Teams repair this. They package a number of modules right into a unmarried container that strikes, duplicates, and kinds them as a unmarried unit.
Click on the grey + icon in any cellular and make a selection the Workforce module. Drag your present Symbol module into the Workforce. Throughout the Workforce settings, click on Upload Component, make a selection the Textual content module, and sort your caption and elegance your typography.

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

You aren’t restricted to only 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 Disclose Results With Interactions
On the other hand, having a number of textual content under your photographs could make all the structure really feel crowded and weigh down your guests with knowledge overload. One of the simplest ways to have each shape and serve as is to stagger the tips and expose it handiest on motion, reminiscent of a click on or hover.
Doing this the standard method will require numerous CSS or even JavaScript, however now not with Divi 5. With Divi 5’s Interactions, you’ll simply construct interactive parts like popups, toggles, finds, and extra in a couple of clicks, with out coding or finding out complicated ideas. You outline a cause, make a selection an impact, and set a goal. That’s all you want to construct an interplay.
The usage of this as a concept, let’s construct an interplay on your photographs that highlights and divulges knowledge like captions, context, or attributes when your customer hovers over it. Right here’s how:
Label And Cover Your Textual content Component
For this situation, we’re protecting each the textual content added above and the background genre. On the other hand, the background genre is moved to the hover state, mixed with turn into results, moderately than the principle genre, since the hover genre trade will make the gallery stand out extra.

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

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.

Create The Hover Interplay
Head in your Module Workforce settings. Open the Complex tab, scroll, and upload an Interplay. Label it one thing suitable, like “Caption Disclose on Hover.”
Set Cause Tournament to Mouse Input. Below Impact Motion, make a selection Display Component. The Goal Module dropdown seems, appearing your Admin Labels. Choose the textual content label you created previous. Set Time Extend to 200ms for a easy expose.

Upload a 2nd interplay the use of the reproduction button. Change the label to “Cover Caption On Mouse Out”, Cause Tournament to Mouse Go out, and the Impact Motion to Cover Component. Depart the Goal Module and Time Extend as is.

Now, soaring over any picture superbly presentations the textual content content material with results that construct interest. The similar will also be completed to some other module you propose so as to add in your module staff.
Save Time With Presets
Talking of time saving, you don’t want to genre each picture for my part. After you have configured one picture precisely as you need it, save the ones settings as an Component Preset or an Choice Workforce Preset.
Click on the preset icon on the most sensible proper of the Symbol module settings panel. Choose New Preset From Present Types, give it a reputation, and save.

Now each different picture for your grid can use that preset. Open any Symbol module, click on the preset icon, and make a selection your stored preset from the record. Your whole styling applies immediately. That’s how Component Presets paintings. They seize a component’s settings so you’ll reuse them persistently.
For extra keep an eye on, use Choice Workforce Presets. Those help you save particular styling teams, reminiscent of field shadows, borders, or filters, one by one. Hover over any possibility staff panel, like Field Shadow or Border, click on the preset icon, and save simply the ones settings.

This will get robust whilst you combine them. Follow the similar field shadow to all photographs the use of an Choice Workforce Preset, however handiest upload borders and nook radius in your heart piece photographs. You’re now not locked into styling the whole lot the similar method. Pick out which parts get which kinds with out rebuilding from scratch each and every time.
You’ll be able to additionally save Interactions as Choice Workforce Presets to reuse in each and every merchandise of your gallery, which will get tedious if completed one after the other. The setup stays the similar: label and conceal the textual content, open any column, pass to Interactions, click on the preset icon, and make a selection your stored preset. Each hover interactions observe immediately. Simply replace the objective parts.

Replace both preset kind globally later to modify each related picture throughout your website. Taste and set as soon as, observe selectively, replace in all places when wanted.
Use Case: Developing A Fullwidth Gallery
Now that you understand how you’ll construct a grid gallery the use of Divi 5, let’s stretch issues out via construction a Fullwidth Gallery.
This sort of gallery spans all the viewport, edge to edge. Fullwidth galleries paintings best possible when photographs want most respiring room. Images portfolios achieve have an effect on when pictures fill the display with out synthetic limitations. Style and way of life websites have the benefit of the immersive really feel. Editorial layouts glance extra magazine-like when visuals fill the overall width, amongst different issues.
Surroundings this up takes simply width changes and a niche choice. Right here’s learn how to set it up:
Configure Widths
Get started together with your segment. Open the segment settings, pass to the Design tab, and to find Sizing. Set each Width and Max Width to 100%. This eliminates Divi’s default container restrictions, permitting the segment to span the entire viewport.

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

However the segment by myself gained’t do it. Rows inside sections have their very own width constraints and padding, growing 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.

Construct A Gallery
The gallery construction procedure remains the similar as what we coated previous. Right here, we’re the use of the similar gallery we constructed above.
You’ll be able to switch to some other template. A three×3 grid works for smaller collections. 5×five or six×6 grids maintain better units. In case you’re construction a images portfolio or editorial gallery the place visible selection issues greater than uniformity, the Masonry templates come up with that Pinterest-style float.
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 photos to each and every cellular. The fullwidth container you configured previous handles the remaining, stretching your gallery throughout all the viewport.

Modify Grid Cellular Gaps
Cross to the row settings, open the Design tab, and underneath Structure, set each Horizontal Hole and Vertical Hole to 0px. This eliminates all spacing so photographs contact edge to edge, growing a continuing wall of footage around the viewport. It really works smartly for editorial layouts, collages, or any design that wishes a continuing visible float.
0 gaps are not obligatory. Small gaps between 5px and 10px swimsuit product shows or structure paintings the place slight separation is helping. Style lookbooks ceaselessly use 10px to 15px to provide photographs respiring room whilst protecting a fullwidth really feel.
Gaps of 20px or extra create a extra gallery-style glance, supreme for way of life or emblem storytelling the place each and 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 Regulations underneath the hood. Divi preconfigured the ones offset regulations to check fashionable structure patterns like masonry grids and portfolio layouts, so that you get skilled effects with out touching any settings.
However you’re now not restricted to these prebuilt templates. The similar offset gadget that powers the ones templates is Grid Offset Regulations, which provides you with keep an eye on over which grid cellular (or picture on this case) breaks out of automated placement. This permits you to construct layouts that fit your particular wishes, moderately than adapting your content material to suit a template.
The usage of this, we will make a picture and cells span a number of columns or rows. Pin a picture to an actual grid place. Let’s take a look at one of the vital examples you’ll construct with offsets:
Highlighting Pieces At Periods
Trend-based concentrated on allows you to emphasize particular photographs with out manually configuring each and every one. Open your row settings and navigate to the Design tab. Scroll all the way down to Structure and to find Grid Offset Regulations. 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 identity when managing a number of offset regulations. Kind one thing descriptive, reminiscent of “Characteristic Each 7th,” so you’ll 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.

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

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

This trend works smartly for product galleries that spotlight bestsellers or new arrivals at constant durations. Trade the period quantity to check 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 firstly of your gallery attracts consideration in your maximum essential content material. This works smartly for portfolio showcases the place you need 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 normal gallery pieces.

This manner helps to keep your gallery arranged whilst giving visible weight to the content material that merits it. The primary merchandise anchors the structure, and the whole lot else flows naturally round it.
Construction An Asymmetrical Gallery
Asymmetrical layouts create visible passion via breaking clear of uniform grid patterns. As an alternative of each picture sitting in similar cells, you combine other sizes to lead the viewer’s eye thru your gallery. This works in particular smartly for ingenious portfolios, editorial layouts, and emblem showcases the place you need a extra dynamic presentation.
Mix a number of offset regulations that focus on other pieces. Get started together with your first rule: Goal First Merchandise, set Column Span to two. This establishes your anchor level.
Upload a 2nd rule: Goal Each 3rd Merchandise, set Row Span to two. Now each 3rd picture for your gallery stretches vertically, growing tall focal issues that interrupt the horizontal float.

This layered manner prevents your gallery from feeling formulaic. Guests see selection with out chaos since the underlying grid construction helps to keep the whole lot aligned. The rhythm remains arranged whilst taking a look spontaneous.
Modify the period numbers in keeping with your gallery dimension. Smaller galleries want decrease durations to turn the trend. Better galleries can use upper durations with out dropping the impact.
Take a look at Construction Customized Galleries In Divi 5 These days!
Construction grid galleries in Divi 5 provides you with keep an eye on over picture placement and spacing with out requiring code adjustments. The grid gadget handles responsive conduct robotically, permitting you to concentrate on the visible design.
Additionally, past simply construction a elementary gallery, you’ll give them many extra purposes with Interactions. All of this, with none coding. Those similar grid controls paintings throughout your whole website, so the abilities you picked up right here observe to any structure you construct subsequent.
Obtain it now and get started making use of those grids in your personal tasks.
The submit How To Construct A Grid Gallery In Divi 5 gave the impression first on Chic Topics Weblog.
WordPress Web Design