Christmas Sale

30% off HappyDivi plugins

Gallery, Form Pro and Liven, until December 31.

The Lightbox

Turn on the built-in lightbox, choose its buttons, add your own call to action and see how it works on phones.

Updated · HappyDivi Gallery 1.0.23

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.

HappyDivi Gallery lightbox with a thumbnail strip and tools for zoom, slideshow, rotate, share and fullscreen

The lightbox with its thumbnail strip and tools.

Choose the Buttons#

SettingWhat it adds
Show Thumbnail StripA row of small images for jumping to any image
Show Info PanelCamera details for photos, date and author for posts, or price and Add to Cart for products
Show Download ButtonSaves the full-size image
Show Fullscreen ButtonFills the whole screen
Enable Image ZoomClick, scroll, pinch or double-tap to zoom
Show Share ButtonThe phone's share sheet, or copies the link on desktop
Show Slideshow ButtonPlays the images in turn. Set Slideshow Delay, or use Auto-start Slideshow
Show Rotate ButtonsTurns the image left or right
Show Distraction-free ButtonHides the controls for a clean view
Loop NavigationGoes 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.

Three phone screens showing the HappyDivi Gallery category filter bar, a two-column masonry gallery of posts, and the full-screen lightbox with controls

The filter bar, masonry layout and lightbox on a phone.

Keyboard Keys#

KeyAction
Left and Right arrowsPrevious and next image
EscClose
FFullscreen
IInfo panel
ZZoom
R, Shift + RRotate
Space or PStart or stop the slideshow
HDistraction-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.