Image gallery module: Sharing a collection of images on Divi is always a great way to visually engage users in your content. Divi’s Image gallery module allows you to create and organize galleries anywhere on your website. The Image gallery module on Divi Builder is available in grid and slider format and supports large galleries with pagination.
How to add a Image gallery module to your page
Before you can add a Image gallery module to your page, you must first jump into the Divi Builder. Once the Divi theme is installed on your website, you will notice a Use Divi Builder button above the post editor every time you create a new page. Click on this button to activate Divi Builder and access all the Divi Builder modules. Then click on the Use Visual Builder button to launch the builder in visual mode. You can also click the Use Visual Builder button when browsing your foreground website if you are logged into your WordPress dashboard.
Once you have entered Visual Builder, you can click the gray plus button to add a new module to your page. New modules can only be added inside rows. If you are starting a new page, remember to add a row to your page first. We have great tutorials on using Divi’s line and section elements.
Locate the Image gallery module in the list of modules and click on it to add it to your page. The list of modules is searchable, which means you can also type the word “gallery” and then click enter to automatically find and add the Image gallery module! Once the module is added, you will be greeted by the module options list. These options are separated into three main groups: Content, Design, and Advanced.
Example use case: Adding a full-width Image gallery module to showcase the photograph.
Adding a gallery to your photography page is a great way to promote your work and increase your credibility with clients. In this example, I’ll show you how you can use the Image gallery module to add an image gallery with a grid layout that spans the entire width of the page. The images have no space between them which gives it a practical and aesthetic presentation.
And let’s not forget that each image opens a popup to cycle through the larger versions of the images in the gallery.
Using Visual Builder, add a new section under the header section with a fullwidth or full width (1 column) row. Then add the Image gallery module to the row.
Update the Image gallery module settings as follows:
Content Options
Design options
Save settings
Now all that’s left is to get rid of all the space around the images. Go back and select row settings. On the Design tab, update the following:
Make this row full width: YES
Use custom gutter width: YES
Gutter width: 1
It is important to remember that the numerical value “1” for the gutter width is zero (no width at all).
Save settings
That’s all!
Image gallery module content options
In the content tab, you will find all the content elements of the module, such as text, images, and icons. Everything that controls what appears in your module will always be found in this tab.
Gallery images
Click the Update Gallery button to launch the WordPress media library where you can choose which images you want to display in your gallery.
Number of images
Set the number of images to display per page. When more images than what is allowed on each page are included in your gallery, the pagination will appear below the images.
Display title and caption:
If an image title or caption has been added, they will appear below the image in the gallery. If you want to turn off these text elements, you can do so using this option.
Show pagination
When more images than what is allowed on each page are included in your gallery, the pagination will appear below the images. If you want to remove paging, you can turn off this setting.
Admin Label
This will change the module label in the constructor for easy identification. When you use the WireFrame view in Visual Builder, these labels appear in the module block of the Divi Builder interface.
Image gallery module design options
In the Design tab, you will find all the styling options for the module, such as fonts, colors, sizing, and spacing. This is the tab that you will use to change the appearance of your module. Each Divi module has a long list of design settings that you can use to change anything.
Disposition
By default, galleries are displayed as a grid of images. You can also choose to display your gallery as an image slider.
Thumbnail orientation
You can choose to have the images from your gallery in portrait or landscape format. If you change the mode, you may need to regenerate your thumbnails.
Zoom Color Icon
When you hover over an item in the Gallery pod, an overlay icon appears. You can adjust the color used from this icon using the color picker in this setting.
Hover overlay color
When you hover over an item in the Gallery pod, an overlay color appears at the top of the image and below the portfolio title text and icon. By default, a semi-transparent white color is used. If you want to use a different color, you can adjust the color using the color picker in this setting
Hover selector icon
Here you can choose a custom icon to display when a visitor hovers over gallery items in the module.
Text color
Here you can choose whether your text should be light or dark. If you are working on a dark background, your text should be light. If your background is light, your text should be dark.
Title font
You can change the font of your title text by selecting the desired font from the drop-down menu. Divi comes with dozens of great fonts powered by Google Fonts. By default, Divi uses the Open Sans font for all the text on your page. You can also customize the style of your text using bold, italics, capital letters, and underline options.
Title font size
Here you can adjust the size of your title text. You can drag the range slider to increase or decrease the size of your text or directly enter the desired text size value in the input field to the right of the slider. The input fields support different units of measure, which means you can enter “px” or “em” depending on your size value to change its unit type.
Title text color
By default, all the text colors in Divi appear in white or dark gray. If you want to change the text color of your title, choose the desired color from the color picker using this option.
Title letter spacing
Letter spacing affects the space between each letter. If you want to increase the space between each letter in your title text, use the range slider to adjust the space or enter the desired spacing size in the input field to the right of the slider. The input fields support different units of measure, which means you can enter “px” or “em” depending on your size value to change its unit type.
Title row height
Line height affects the space between each line of your title text. If you want to increase the space between each line, use the range slider to adjust the space or enter the desired spacing size in the input field located to the right of the cursor. The input fields support different units of measure, which means you can enter “px” or “em” depending on your size value to change its unit type.
Legend font
You can change the font of your caption text by selecting the desired font from the drop-down menu. Divi comes with dozens of great fonts powered by Google Fonts. By default, Divi uses the Open Sans font for all the text on your page. You can also customize the style of your text using bold, italics, capital letters, and underline options.
Legend font size
Here you can adjust the size of your caption text. You can drag the range slider to increase or decrease the size of your text or directly enter the desired text size value in the input field to the right of the slider. The input fields support different units of measure, which means you can enter “px” or “em” depending on your size value to change its unit type.
Legend text color
By default, all the text colors in Divi appear in white or dark gray. If you want to change the color of your caption text, choose the desired color from the color picker using this option.
Legend letter spacing
Letter spacing affects the space between each letter. If you want to increase the space between each letter in your caption text, use the range slider to adjust the space or enter the desired spacing size in the input field to the right of the slider. The input fields support different units of measure, which means you can enter “px” or “em” depending on your size value to change its unit type.
Legend row height
Line height affects the space between each line of caption text If you want to increase the space between each line, use the range slider to adjust the space or enter the desired spacing size in the input field located to the right of the cursor. The input fields support different units of measure, which means you can enter “px” or “em” depending on your size value to change its unit type.
Use border
Enabling this option will place a border around your module. This border can be customized using the following conditional parameters.
Border color
This option affects the color of your border. Select a custom color from the color picker to apply it to your border.
Border width
By default, the borders are 1 pixel wide. You can increase this value by dragging the range slider or entering a custom value in the input field to the right of the slider. Custom units of measure supported, which means you can change the default unit from “px” to something else like em, vh, vw, etc.
Border Style Borders support eight different styles: solid, dotted, dotted, double, groove, ridge, overlay, and start. Select your desired style from the drop-down menu to apply it to your border.
Read more: Divi Tutorial: How to use the divi full-screen card module
Advanced options of the gallery module
On the advanced tab, you’ll find options that more experienced web designers might find useful, such as custom CSS and HTML attributes. Here you can apply custom CSS to any of the module’s many elements. You can also apply custom CSS classes and IDs to the module, which can be used to customize the module in your child theme’s style.css file.
CSS ID
Enter an optional CSS ID to use for this module. An ID can be used to create a custom CSS style or to link to particular sections of your page.
CSS class
Enter the optional CSS classes to use for this module. A CSS class can be used to create custom CSS styling. You can add multiple classes, separated by a space. These classes can be used in your Divi child theme or in the custom CSS style sheet that you add to your page or website using the Divi theme options or the settings on the Divi Builder page.
Custom CSS
Custom CSS can also be applied to the module and any of the module’s internals. In the Custom CSS section, you will find a text field where you can add custom CSS style sheets directly to each element. CSS entries in these settings are already wrapped in style tags. So just enter the CSS rules separated by semicolons.
Visibility
This option allows you to control the devices on which your module appears. You can choose to deactivate your module on tablets, smartphones, or desktops individually. This is useful if you want to use different mods on different devices, or if you want to simplify the mobile design by eliminating certain elements from the page.
For website maintenance service contact us.