Album
A cover image or a button that opens a full set of photos in Bricks’ own lightbox, with optional icon, caption and description on the cover.
Version: 1.0.0 · Requires: PHP 7.4+, Bricks · See the live demo
What it does
- Choose a cover or a button as the trigger. Either opens the whole album.
- The first selected image is the cover.
- The button reuses Bricks’ own Button classes, so it follows your Theme Style.
Installation
- Upload and activate the plugin. Bricks must be active.
- In the Bricks editor search for Album (Media group).
- Pick photos in Images.
Settings
Album
- Images — Media Library picker
Trigger
- Trigger — Album Cover (default), Button
Trigger (cover)
- Cover image height — CSS length, e.g.
320px - Image overlay — On
- Overlay colour — rgba(0,0,0,0.35)
Trigger (button)
- Button text — “View Album”
- Size — Bricks button sizes
- Style — Primary (default), Secondary, Light, Dark, Muted
- Enable circle / Enable outline — Off
Cover content (cover only)
- Icon — Bricks icon picker
- Caption type — Title (default), Caption, Description, Custom, None
- Custom caption — Text, when caption type is Custom
- Description type — None (default), Title, Caption, Description, Custom
- Custom description — Text, when description type is Custom
Lightbox
- Image size — Full (default) or any registered size
- Animation — None, Fade, Zoom (default)
- Caption — Off
- Thumbnail navigation — Off
- Lightbox ID — Groups lightboxes
Title, caption and description are read from the cover image’s attachment fields.
Quick start
- Add the Album element (Media group).
- Choose your photos under Images. The first becomes the cover.
- Pick Album Cover or Button as the trigger.
- Click it on the front end to open the full set in the lightbox.
Examples
- Gallery teaser — a cover with a title and a camera icon, opening 20 photos from one trip.
- Inline link — a Button trigger that says View Album beside a paragraph of text.
Tips
- Fill in the title, caption and description of the cover image in the Media Library, then set the cover caption type to match.
- Use a Lightbox ID to keep separate albums from joining into one gallery.
- Choose a smaller Image size if the lightbox loads slowly on mobile.
Troubleshooting
- No caption shows — the cover image has no title or caption saved, or the caption type is None.
- Lightbox captions are missing — switch on the lightbox Caption option.
Known limits
- Only Bricks’ native lightbox is supported. There is no Fancybox option.
- Cover content comes from the cover image only, not from each album image.