Aero Page Builder Documentation

Image Gallery

Image Gallery

An Image Gallery shows a set of photos as square thumbnails. Clicking a thumbnail opens the photo full size in a lightbox, where visitors can step through the whole set. The gallery can be a grid of thumbnails or a single thumbnail that stands for the entire set.

What it is for

Use it for event photos, facilities, portfolios — any set of pictures that visitors may want to browse at full size without leaving the page. The Single Image layout is useful when space is tight, for example next to a paragraph inside a Simple Content column.

An Image Gallery with a title, a short description and two rows of square thumbnails in five columns on a light green background.
Grid layout, five columns, 15px gap, on a light green container background.

See it live on the example page APB Image Gallery.

Structure

  • The Image Gallery component holds the layout (Grid or Single Image), the columns and gap, a hover color and an optional description.
  • Image Gallery Items — each item holds a set of images (upload as many as you like in one item). Most galleries need a single item; use several items when you want to keep sets apart for editing.

Component settings

SettingOptionsDefaultWhat it does
Section Title / Show Section Title / Intro— / No / emptySee Section Title and Intro Text.
Descriptionrich textemptyA second text block, shown under the intro and above the thumbnails.
Target PlacementBody, Main Content Top/Bottom, Top region, Sidebars, Internal Placement 1–3BodySee Target Placement.
Display LayoutGrid, Single ImageGridGrid shows every image as a thumbnail. Single Image shows only the first image; clicking it opens the lightbox with all of them. Columns and Column Gap are ignored in Single Image.
Columns1 … 106Thumbnails per row (Grid only). See Columns and Column Gap.
Column Gap0 … 60px10pxSpace between thumbnails (Grid only).
Color StyleBlack, White, Teal Blue, Blue, Orange, Green, Red, Silver and BlueBlueColor of the hover effect on thumbnails and of the caption. See Color Style.
Component Width25% … 100%100%See Component Width.
Custom Class / Access ControlSee Advanced settings.
Container Settings32px bottom marginSee Container Settings.

Image Gallery Item fields

FieldRequiredWhat it does
TitlenoName of the set; shown as a caption in the lightbox when the image has no title of its own.
ImagesyesOne or more PNG, GIF, JPG or WebP files. For each image you can set a Title (lightbox caption), Alternative text (for screen readers and search engines) and adjust the square Crop used for the thumbnail.
Admin descriptionnoEditor note; never shown.

How to use it

  1. Click Add Image Gallery, set the Section Title and, if useful, an Intro or Description.
  2. Leave Display Layout on Grid and pick the number of Columns (4–6 works well for photos).
  3. Click Add new Image Gallery Item, give it a Title, and upload the images. Fill in the alternative text for each; adjust the square crop when a face or subject is cut off.
  4. Click Create, save the page, and click a thumbnail to check the lightbox order — it follows the upload order.

Tips

  • Upload reasonably sized files (about 2000px on the long side is plenty). The site resizes thumbnails automatically, but very large originals slow down the lightbox.
  • Use Single Image plus Component Width 100% inside a Simple Content column to get a “click to see more photos” tile.
  • If you want captions and links on each picture rather than a lightbox, use Carousel or Feature Box instead.

For site builders

ItemValue
Moduleapb_pb_image_gallery
Paragraph typesapb_pb_image_gallery, apb_pi_image_gallery
Requiresapbuilder, Paragraphs, Entity Reference Revisions, Inline Entity Form, Field Group, Crop, Image Widget Crop, core Image / Options / Taxonomy / Text
Own configcrop type apb_gallery_thumb; image styles apb_image_gallery_thumb (grid) and apb_image_gallery (lightbox)
Shared vocabulariesapb_tax_display_layout (Grid / Single Image), apb_tax_columns, apb_tax_column_gap, apb_tax_cs_01, apb_tax_width, apb_tax_target_placement
Front-endapb_pb_image_gallery/frontend: GLightbox (from aero-page-builder-core) with one gallery per component.
Container settingsFull profile.
Example page/apbuilder_examples/apb-image-gallery