The Lightbox
Turn on the built-in lightbox, choose its buttons, add your own call to action and see how it works on phones.
The HappyDivi Gallery lightbox opens images full screen and is built for touch on phones.
Under Content → Click Action, set Image Click Action to Open in Lightbox. The lightbox settings then appear. The other choices are Go to Post / Product URL and No Click Action.
The lightbox with its thumbnail strip and tools.
Choose the Buttons#
| Setting | What it adds |
|---|---|
| Show Thumbnail Strip | A row of small images for jumping to any image |
| Show Info Panel | Camera details for photos, date and author for posts, or price and Add to Cart for products |
| Show Download Button | Saves the full-size image |
| Show Fullscreen Button | Fills the whole screen |
| Enable Image Zoom | Click, scroll, pinch or double-tap to zoom |
| Show Share Button | The phone's share sheet, or copies the link on desktop |
| Show Slideshow Button | Plays the images in turn. Set Slideshow Delay, or use Auto-start Slideshow |
| Show Rotate Buttons | Turns the image left or right |
| Show Distraction-free Button | Hides the controls for a clean view |
| Loop Navigation | Goes from the last image back to the first |
On Phones#
The lightbox is built for touch. Visitors swipe between images, swipe down to close, pinch or double-tap to zoom, and share through the phone's own share sheet.
The filter bar, masonry layout and lightbox on a phone.
Keyboard Keys#
| Key | Action |
|---|---|
| Left and Right arrows | Previous and next image |
| Esc | Close |
| F | Fullscreen |
| I | Info panel |
| Z | Zoom |
| R, Shift + R | Rotate |
| Space or P | Start or stop the slideshow |
| H | Distraction-free mode |
Add Your Own Button#
The custom button group adds a call to action inside the lightbox. Set Button Text and Button URL, and choose whether it opens in the same window or a new tab. It suits a line such as "Book this photographer" or "See plans".
Design It#
On the Design tab, the lightbox group sets the backdrop, using Divi's full background options, and the fonts for its text.
If a lightbox on your site is not opening, read why the Divi lightbox stops working.
