ACF Gallery module
On this page
- Before you start: create the gallery field
- How to add the module
- Content tab
- Content tab: Source
- Content tab: Layout
- Content tab: Elements
- Content tab: Hover
- Content tab: Click action
- Content tab: Pagination
- Design tab
- Design tab: Images
- Design tab: Title and caption container
- Design tab: Gallery text
- Design tab: Gallery text caption
- Design tab: Overlay
- Design tab: Hover lines
- Design tab: Filter categories
- Design tab: Filter categories active
- Design tab: Lightbox
- Design tab: Lightbox text
- Design tab: Lightbox text caption
- Design tab: Pagination
- Advanced tab
The ACF Gallery module shows the images of an ACF field as a grid, masonry or justified gallery, with hover effects, captions, a lightbox, a category filter and pagination. Add images to each post once, and the same module, for example in a Theme Builder template, shows the right gallery on every post. It can also read the images from an options page, a term or a user. The module is part of Divi Gallery Extended.

Note: This module works with Divi 5 only. If you don’t see it in the module list, go to Divi Extended → Divi Gallery Extended → Modules, turn on ACF Gallery and click Save Changes. If you updated from an older version, the new module is turned off until you turn it on here.

Before you start: create the gallery field#
The module reads the images from an ACF field. The Gallery field type is part of ACF PRO and of the free Secure Custom Fields plugin. The module also works with an Image field, and with a Repeater that has an image or gallery sub field.
- Go to ACF → Field Groups (or SCF → Field Groups) and click Add New.
- Add a field with the Field Type set to Gallery, and note its Field Name, for example
post_gallery. - Under Settings → Location Rules, choose where the field shows, for example Post Type is equal to Post, and save.
- Edit a post, add images to the new gallery field and update the post.

Then add the ACF Gallery module to the post, or to a Theme Builder template for posts, and enter the same field name in ACF field name.
How to add the module#
- Open your page in the Divi Visual Builder.
- Click the (+) icon inside a row to add a new module.
- Search for DGE ACF Gallery in the module search box.
- Click the module to insert it. Its settings open on the right.

Content tab#
The Content tab sets which field the images come from, the layout, the title and caption, the hover effects, what happens on click and the pagination.

Content tab: Source#
- Read the field from: Here you can choose where the ACF field is read from: the current post, a post you choose by ID, an ACF options page, a term or a user. Options: Current post, Post ID, Options page, Term ID and User ID.
- Post ID: Here you can input the ID of the post that holds the gallery field. Shows when read the field from is Post ID.
- Term ID: Here you can input the ID of the term that holds the gallery field. Shows when read the field from is Term ID.
- User ID: Here you can input the ID of the user that holds the gallery field. Shows when read the field from is User ID.
- ACF field name: Here you can input the name of the ACF Gallery (or Image) field that holds the images. When you use a repeater, input the name of the repeater field.
- Repeater sub field name: Only for a repeater field: input the name of the image sub field. The images of every row are collected. Leave it empty when the field is a gallery or image field.
- Images limit: Here you can input the maximum number of images to display. 0 displays all of them.
- Images order: Here you can choose the order of the images. Options: Same as in ACF, Reverse and Random.
- When there are no images: Here you can choose what is shown when the field has no images, or the ACF plugin is not active. Options: Hide the module, Show placeholder text and Show fallback images.
- Placeholder text: Here you can input the text shown when there are no images. Shows when “When there are no images” is Show placeholder text.
- Fallback images: Choose the images that are shown when the field has no images. Shows when “When there are no images” is Show fallback images.

Note: Placeholder text is shown only to visitors. In the Visual Builder, an empty field shows six sample tiles so you can still style the gallery.
Content tab: Layout#
- Layout: Here you can choose how the images are arranged. Options: Grid, Masonry and Justified.
- Number of columns: Here you can select the number of columns to display images.
- Column spacing: Increase or decrease spacing between images.
- Row height: Here you can set the height each row of images aims for. Rows are stretched to fill the width. Shows when the layout is Justified.
- Image aspect ratio: Here you can choose the shape every image is cropped to. Auto keeps the original shape.
- Equal height per row: Whether or not the images in each row are set to the height of the tallest image in that row. It applies when the aspect ratio is Auto.
- Image size: Here you can select the size of images in gallery.
- Disable lazy loading: Whether or not to lazy load images.
- Entrance animation: Here you can choose how each image appears when it scrolls into view. Options: None, Fade up, Fade in and Zoom in.
- Stagger images: Whether or not the images appear one after another instead of all at once. Shows when the entrance animation is not None.



Content tab: Elements#
- Enable filterable gallery: Whether or not to show the filterable gallery. For a filterable gallery, you must assign a category to the images, in the media library.
- Show all images filter: Whether or not to show the all images filter. Shows when enable filterable gallery is on.
- All images text: Here you can define the All images text you would like to display. Shows when show All images filter is on.
- Show title: Whether or not to show the title for images (if available).
- Show title in: Here you can select the area where you want to display title. Shows when show title is on.
- Show caption: Whether or not to show the caption for images (if available).
- Show caption in: Here you can select the area where you want to display caption. Shows when show caption is on.

The filter buttons are the Media Categories of the images. Open an image in Media → Library and tick its category in the Media Categories box. Add new categories in Media → Media Categories.


Content tab: Hover#
- Image hover effect: Here you can select an effect to apply to the image itself on hover, independent of the overlay style. Options: None, Zoom in, Zoom out, Grayscale to color, Blur to sharp, Tilt, Rotate and Lift.
- Hover feel: Here you can choose the speed and easing of every hover effect. Options: Smooth, Snappy, Bouncy and Slow.
- Enable overlay on hover: Whether or not to show overlay on hover.
- Overlay style: Here you can select the style of the overlay to appear. Options: Fade, Zoom, Slide right, Slide left, Slide top, Slide bottom, Slide up caption, Half flip left, Half flip right, Half flip top, Half flip bottom, Curtain horizontal, Curtain vertical, Corner reveal, Diagonal wipe and Blur backdrop.
- Flip overlay size: Here you can set how much of the item the flip overlay covers. Increase this if your overlay content needs more room. Shows when the overlay style is one of the Half flip styles.
- Show overlay icon: Whether or not to show an icon in the overlay.
- Overlay icon: Here you can define a custom icon for the overlay. Shows when show overlay icon is on.
- Icon animation: Here you can choose how the icon moves when the overlay appears. Shows when show overlay icon is on.
- Line hover effect: Here you can choose a line effect drawn over the image on hover. It works together with the image effect and the overlay. Options: None, Frame, Corners, Draw lines, Double frame, Top and bottom lines, Side lines, Cross lines, Underline slide and Inset grow.

Content tab: Click action#
- OnClick trigger: Choose an action to perform on clicking of an image. The link is the Custom Link of the image in the media library; images without a link are not clickable. Options: None, Lightbox, Link and Lightbox and link on overlay.
- Link target: Here you can choose whether or not your link opens in a new window. Shows when the OnClick trigger is Link or Lightbox and link on overlay.
- Lightbox image size: Here you can select the size of images in lightbox. Shows when the OnClick trigger opens the lightbox.
- Lightbox effect: Here you can choose opening effect of lightbox. Options: None, Zoom and Fade.
- Transition duration: Here you can select the transition duration in milliseconds.
- Enable navigation: Whether or not to enable navigation in lightbox.
- Title and caption style: Here you can select the display style of title and caption in lightbox. Options: Image overlay and Below image.

For Link and Lightbox and link on overlay, each image opens its own Custom Link. Go to Media → Library, open the image and fill in the Custom Link field. Images without a custom link are not clickable.

Content tab: Pagination#
- Show pagination: Show Pagination or not.
- Pagination type: Select the pagination type to display as number or load more button. Shows when show pagination is on.
- Images per page: Choose how many images you would like to display per page. Shows when show pagination is on.
- Load more button text: Here you can define the text of the load more button. Shows when the pagination type is Load more.
- Show previous next links: Show Previous Next Links or not. Shows when the pagination type is Number pagination.
- Next link text: Here you can define Next Link text in numbered pagination. Shows when show previous next links is on.
- Prev link text: Here you can define Previous Link text in numbered pagination. Shows when show previous next links is on.
- Lightbox navigate current page images only?: Lightbox on next previous image navigation to display only current page images, and not to show next page images. Shows when pagination and the lightbox are both on.

The Link, Background and Element label groups are the standard Divi options.
Design tab#
The Design tab styles the images, the title and caption, the overlay and its icons, the hover lines, the filter, the lightbox and the pagination.

Design tab: Images#
- Hover lift distance: Move the slider or input the value to set how far the image rises on hover. Shows when the image hover effect is Lift.
- Hover zoom: Move the slider or input the value to set how much the image grows or shrinks on hover. 1 means no change. Shows when the image hover effect is Zoom in or Zoom out.
- Hover rotation: Move the slider or input the value to set how many degrees the image turns on hover. Shows when the image hover effect is Rotate.
- Hover tilt: Move the slider or input the value to set how many degrees the image tilts on hover. Shows when the image hover effect is Tilt.

Design tab: Title and caption container#
Use the standard Divi spacing settings to style the title and caption container.

Design tab: Gallery text#
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the gallery text.

Design tab: Gallery text caption#
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the gallery text caption.

Design tab: Overlay#
- Background: Adjust the background style of this element by customizing the background color, gradient, image, video, pattern and mask.
- Background color
- Content position: Here you can choose where the icon, title and caption sit inside the overlay. Options: Top left, Top center, Top right, Center left, Center, Center right, Bottom left, Bottom center and Bottom right.
- Gap between overlay elements: Move the slider or input the value to increase or decrease the space between the icon, title and caption.
- Overlay icon size: Here you can set icon size.
- Overlay icon color: Here you can select icon color.
- Zoom icon size: Increase or decrease overlay zoom icon font size. Shows when the OnClick trigger is Lightbox and link on overlay.
- Zoom icon background color: Here you can define a custom background color for the zoom/lightbox icon. Shows when the OnClick trigger is Lightbox and link on overlay.
- Zoom icon color: Here you can define a custom color for the zoom/lightbox icon. Shows when the OnClick trigger is Lightbox and link on overlay.
- Link icon size: Increase or decrease overlay link icon font size. Shows when the OnClick trigger is Lightbox and link on overlay.
- Link icon background color: Here you can define a custom background color for the link icon. Shows when the OnClick trigger is Lightbox and link on overlay.
- Link icon color: Here you can define a custom color for the link icon. Shows when the OnClick trigger is Lightbox and link on overlay.
Use the standard Divi spacing settings to style the overlay.

Design tab: Hover lines#
This group shows when the line hover effect is not None.
- Line color: Here you can define the color of the hover lines.
- Line thickness: Move the slider or input the value to increase or decrease the thickness of the hover lines.
- Line distance from edge: Move the slider or input the value to increase or decrease the space between the hover lines and the edge of the image.

Design tab: Filter categories#
This group shows when enable filterable gallery is on.
- Filter category background: Adjust the background style of this element by customizing the background color, gradient, image, video, pattern and mask.
- Filter category background color
- Filter category border radius: Here you can control the corner radius of this element. Enable the link icon to control all four corners at once, or disable to define custom values for each.
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) and border, box shadow and spacing settings to style the filter categories.

Design tab: Filter categories active#
This group shows when enable filterable gallery is on.
- Active filter category background: Adjust the background style of this element by customizing the background color, gradient, image, video, pattern and mask.
- Active filter category background color
- Active filter category border radius: Here you can control the corner radius of this element. Enable the link icon to control all four corners at once, or disable to define custom values for each.
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) and border, box shadow and spacing settings to style the filter categories active.

Design tab: Lightbox#
- Background color: Here you can define a custom background color for the lightbox.
- Title and caption background color: Here you can define a custom overlay color for the title and caption.
- Close icon color: Here you can define a custom color for the close icon.
- Arrows color: Here you can define a custom color for the arrows.

Design tab: Lightbox text#
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the lightbox text.

Design tab: Lightbox text caption#
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the lightbox text caption.

Design tab: Pagination#
This group shows when show pagination is on.
- Pagination link background color: Here you can define a custom background color for the pagination link.
- Pagination link color: Here you can define a custom color for the pagination link.
- Active pagination link background color: Here you can define a custom background color for the active pagination link.
- Active pagination link color: Here you can define a custom color for the active pagination link.
Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) and spacing settings to style the pagination.

The Sizing, Spacing, Border, Box shadow, Filters, Transform and Animation groups are the standard Divi design options.
Advanced tab#
The Advanced tab has the standard Divi options: CSS ID and classes, custom CSS, attributes, conditions, visibility, transitions, position and scroll effects.
