Docs

Image Gallery

A grid, masonry or justified gallery with lightbox.

On this page

The Image Gallery shows many images at once, as an even grid, a masonry layout that keeps each image's shape, or justified rows that fill the width edge to edge. Images open in a lightbox, can show captions, and can be sorted into groups with filter buttons for a portfolio.

A grid of six project images in three columns with rounded corners
A three-column grid with a 4:3 aspect ratio.
  1. Insert it

    Open Insert in the left panel, find Image Gallery under Media (or type gallery in Search widgets) and click it or drag it onto the canvas.

  2. Choose the images

    Click Add images in Content → Gallery and select the images in the media library. Move left and Move right change the order.

  3. Pick a layout

    Choose Grid, Masonry or Justified rows in Layout, and set the Columns (or the Row height for justified rows) and Gap.

  4. Captions and lightbox

    Choose a Caption source and Caption position, and keep Link on Lightbox so images open large.

Build a filterable portfolio

Turn on Filterable (portfolio). Instead of one list of images you now have Groups: give each group a Group name (such as “Homes” or “Workplaces”) and its own Images. The gallery shows filter buttons above the images, starting with All (rename it in “All” label). Visitors switch groups without the page reloading.

Settings

Settings marked Per device can differ on desktop, tablet and mobile (see Responsive editing).

Content tab

Gallery
SettingWhat it does
ImagesThe images. Add images opens the media library; Move left and Move right change the order. Shown when Filterable (portfolio) is off.
Filterable (portfolio)Sorts the images into named groups and adds filter buttons above the gallery, for a portfolio.
GroupsThe groups. Each has a name and its own images. Add item, drag to reorder, Duplicate item and Delete item. Shown when Filterable (portfolio) is on.
“All” labelText of the button that shows every image. Leave empty for “All”. Shown when Filterable (portfolio) is on.
LayoutGrid uses equal cells, Masonry keeps each image’s shape in columns, Justified rows fills rows of equal height edge to edge. Options: Grid, Masonry, Justified rows. Default: Grid.
ColumnsNumber of columns in the grid and masonry layouts. Shown when Layout is Grid or Masonry. Per device.
Row heightHeight of each row in the justified layout. Shown when Layout is Justified rows. Per device.
Aspect ratioCrops every image in the grid to the same shape. Original keeps each image’s own shape. Shown when Layout is Grid. Per device.
GapSpace between the images. Per device.
ResolutionThe image size WordPress serves. Smaller files load faster; pick one at least as wide as the image is shown. Default: Medium large.
CaptionShows no caption, or the caption, alt text or title from the media library. Options: None, Media library caption, Alt text, Title.
Caption positionPuts the caption under the image, over it, or over it only on hover. Justified rows always show captions over the image. Options: Below the image, Over the image, Over the image, on hover. Default: Below the image. Shown when Caption is set.
LinkOpens the full image in a lightbox, links to the image file, or no link. Options: None, Lightbox, Image file. Default: Lightbox.
Hover overlayShows a tinted layer with an icon when the pointer is over a linked image. On by default. Shown when Link is set.
Overlay iconIcon on the hover overlay. Shown when Link is set and Hover overlay is on.
Each group
SettingWhat it does
Group nameName of the group, shown on its filter button.
ImagesThe images of this group.

Design tab

Images
SettingWhat it does
Hover effectAn effect when the pointer is over an image. Dim others fades the other images. Options: None, Zoom, Lift, Grayscale to color, Dim others. Default: Zoom.
Border radiusRounds the corners of the images. Per device.
BorderBorder of the images.
ShadowShadow of the images.
CSS filtersBlur, brightness, contrast, saturation and hue of the images.
Overlay › Overlay colorColor of the hover overlay. Shown when Hover overlay is on.
Overlay › Icon colorColor of the overlay icon. Shown when Hover overlay is on.
Overlay › Icon sizeSize of the overlay icon. Shown when Hover overlay is on.
Caption

This section shows when Caption is set.

SettingWhat it does
TypographyText style or font, size, weight and spacing of the captions.
ColorColor of the captions.
BackgroundBackground color of the captions. Captions over the image use a dark gradient by default.
AlignmentAligns the captions. Options: Left, Center, Right. Per device.
PaddingSpace inside the captions. Per device.
Shared Design sections

Every element also has these sections at the end of the Design tab.

SectionWhat it does
Spacing & positionMargin, padding, width, alignment in its container, order, position (relative, absolute, fixed), offsets, z-index and global classes. See Spacing, size & position.
Background & borderBackground, border, border radius, box shadow, overflow and opacity of the whole element. See Colors & backgrounds and Borders & shadows.
MaskCrops the element to a shape (circle, arch, blob, star…) or your own SVG or PNG. See Shape dividers & masks.

Behaviour tab

Behaviour sections

The Behaviour tab is the same for every element.

SectionWhat it does
Anchor & classesAn Anchor ID for #links and your own CSS classes.
AnimationsEntrance, scroll, hover and loop animations from presets or your own timeline. See Motion & effects.
Motion & effectsA simple entrance animation, transforms (also on hover), CSS and backdrop filters, and sticky positioning.
Scroll & mouse effectsMovement, rotation, scale, fade and blur while the page scrolls, and pointer effects (follow the pointer, 3D tilt).
VisibilityHide the element on desktop, tablet or mobile, or in dark or light mode. See Visibility.
ConditionsShow the element only when rules match, such as logged-in visitors, a date range or a URL parameter. See Display conditions.
InteractionsShow, hide or change other elements when this one is clicked, hovered or scrolled into view. See Interactions.
AttributesCustom HTML attributes for this element. See Anchor, classes & attributes.

Tips

  • Alt text. Each image uses its alt text from the media library; set it there so screen reader users know what each image shows.
  • Right resolution. Medium large is usually enough for grid cells; the lightbox always opens the full image.
  • Columns on phones. Use 2 columns on mobile, or 1 for large photos.
  • Lightbox look. Lightbox colors, captions, counter and download button are set once for the site in Styles → Theme → Lightbox. See Lightbox & site behaviour.