Skip to Main Content

Divi tutorial: How to use the Image Gallery module

Divi: the easiest WordPress theme to use

Divi: The best WordPress theme of all time!

With over 600.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]

Sharing an image collection on Divi is always a great way to visually engage users in your content. The Divi Gallery module allows you to create and organize galleries anywhere on your website. The gallery module on Divi Builder is available in grid and slider format and supports large galleries with pagination.

gallery example divi.png

How to add a gallery module to your page

Before you can add a 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 button Use Divi Builder above the publisher each time you create a new page. Click this button to activate Divi Builder and access all Divi Builder modules. Then click on the button Use Visual Builder to start the generator in visual mode. You can also click on the button Use Visual Builder when you browse your website in the foreground if you are connected to your WordPress dashboard.

divi builder

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 the lines. If you start a new page, do not forget to add a line to your page first. We have great tutorials on using the elements of lines that sections of Divi.

picture gallery divi.png

Locate the 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 that you can also type the word "gallery", then click enter to search and automatically add the gallery module! Once the module is added, you will be greeted by the list of options of the module. These options are separated into three main groups: Contents , Design et Advanced .

Use Case Example: Adding a full-width image gallery to present the photograph.

Adding a gallery to your photo page is a great way to promote your work and increase your credibility with customers. In this example, I'm going to show you how you can use the gallery module to add an image gallery with a grid layout that runs the full width of the page. The images have no space between them which gives it a practical and aesthetic presentation.

creating an image gallery divi.jpg

And let's not forget that each image opens a popup to scroll through the larger versions of the images in the gallery.

lightbox divi gallery.gif

Using Visual Builder, add a new section under the header section with a fullwidth or full width (1 column) line. Then add the gallery module to the line.

Update the Gallery module settings as follows:

Content options

Gallery Images: Click the updated gallery and select the images you want to include in the gallery. Number of images: 12 Show title and caption: NO Show Pagination: NO

Design options

Layout: Grid Thumbnail orientation: Landscape Zoom icon Color: #ffffff Rollover flyover color: rgba (0,0,0,0.48) Hover Icon Picker: default

divi wordpress tutorial content section.png

Save settings

Now all that remains is to get rid of all the space around the images. Go back and select the line parameters. On the Design tab, update the following items:

Make this row full width: YES
Use the custom gutter width: YES
Gutter width: 1

It is important to remember that the numeric value "1" for gutter width is really zero (no width at all).

Easily create your website with Elementor

Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]

configuration of the gap of the goutière.png

Save settings

That's all !

Content options of the Gallery module

In the content tab, you will find all the content elements of the module, such as text, images and icons. All that controls what appears in your module will always be found in this tab.

divi module galery content.png

Pictures of the gallery

Click the Make button day the gallery to launch the WordPress multimedia library where you can choose the images you want to display in your gallery.

Number of images

Set the number of images to display per page. When more images than allowed on each page are included in your gallery, pagination will appear under the images.

Show title and caption:

If a title or image caption has been added, they will appear under the image in the gallery. If you want to disable these text elements, you can do this using this option.

View pagination

When more images than allowed on each page are included in your gallery, pagination will appear under the images. If you want to delete pagination, you can disable 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.

Gallery module design options

In the Design tab, you'll find all the module's style options, such as fonts, colors, sizing, and spacing. This is the tab you will use to change the appearance of your module. Each Divi module has a long list of design parameters that you can use to change anything.

gallery module zone design.png

Disposal

By default, the galleries are displayed as a grid of images. You can also choose to display your gallery as an image slider.

Are you looking for the best WordPress themes and plugins?

Download the best plugins and WordPress themes on Envato and easily create your website. Already more than 49.720.000 downloads. [EXCLUSIVE]

Thumbnail orientation

You can choose to have the images of your gallery in portrait or landscape format. If you switch modes, you may need to regenerate your thumbnails .

Zoom Color Icon

When you hover over an item in the Gallery module, an overlay icon appears. You can adjust the color used from this icon using the color picker in this setting.

Color overlay overlay (Hover)

When you hover over an item in the Gallery module, an overlay color appears at the top of the image and under the text and title icon of the portfolio. 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

Overflight Selector Icon (Hover)

Here, you can choose a custom icon to display when a visitor flies over the elements of the gallery 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 clear. If your background is clear, your text must 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 large 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 by using the bold, italic, uppercase, and underlined 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 enter the value of the desired text size directly into the input field to the right of the slider. The input fields support different units of measurement, which means that you can enter "px" or "em" depending on the value of your size to change its unit type.

Title text color

By default, all Divi text colors appear in white or dark gray. If you want to change the color of your title text, choose the desired color in the color picker using this option.

Spacing of title letters

The spacing of the letters 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 measurement, which means that you can enter "px" or "em" depending on the value of your size to change its unit type.

Height of the title line

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 measurement, which means that you can enter "px" or "em" depending on the value of your size 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 large 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 by using the bold, italic, uppercase, and underlined options.

Font Size of the Legend

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 enter the value of the desired text size directly into the input field to the right of the slider. The input fields support different units of measurement, which means that you can enter "px" or "em" depending on the value of your size to change its unit type.

Text color of the Legend

By default, all Divi text colors appear in white or dark gray. If you want to change the color of your caption text, choose the desired color in the color picker using this option.

spacing of letters legends divi.png

Spacing of the letters of the legend

The spacing of the letters 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 measurement, which means that you can enter "px" or "em" depending on the value of your size to change its unit type.

Height of the line of the legend

Line height affects the space between each line of legend 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 to the right of the cursor. The input fields support different units of measurement, which means that you can enter "px" or "em" depending on the value of your size to change its unit type.

Use the border

Enabling this option will place a border around your module. This border can be customized using the following conditional parameters.

Color of the border

This option affects the color of your border. Select a custom color in the color picker to apply it to your border.

Width of the border

By default, the borders have a width of 1 pixel. 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 measurement units supported, which means that you can change the default unit of "px" to something else, like em, vh, vw etc.

Easily create your Online Store

Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [Recommended]

Border Style

Borders support eight different styles: solid, dotted, dotted, double, groove, crest, inlay, and start. Select your desired style from the drop-down menu to apply it to your border.

Advanced gallery module options

In 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 one of the many elements of the module. You can also apply custom classes and CSS IDs to the module, which can be used to customize the module in the style.css file of your child theme.

advance option of divi.png gallery module

CSS ID

Enter an optional CSS identifier to use for this module. An ID can be used to create a custom CSS style or to create links 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 a custom CSS style. 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 by using Divi theme options or Divi Builder page settings.

Custom CSS

Custom CSS can also be applied to the module and to one of the internal elements of the module. In the Custom CSS section, you will find a text field in which you can add custom CSS style sheets directly to each element. The CSS entries in these parameters are already wrapped in the 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 disable your module on tablets, smart phones or desktops individually. This is useful if you want to use different modules on different devices, or if you want to simplify mobile design by eliminating certain elements of the page.

Other Divi tutorials

This article features 4 comments

  1. Hello, I find your articles very interesting.
    I created a gallery under Divi following your advice and everything works fine except that I do not know how to remove the right mouse click to prevent recording under my images. Do you have the solution, thank you in advance. cordially

    1. Good evening Bernard,

      To block the right click, you need to install a plugin. I invite you to do a search on the directory of WordPress.

Leave a comment

Your email address will not be published. Required fields are marked with *

This site uses Akismet to reduce unwanted. Learn more about how your comments data is used.

Back To Top
6 shares
Share2
tweet
Save4