How to Enable and Use the Lightbox in WordPress Image Galleries

At a glance: Plan: Core plugin (thumbnails are Pro) · Powered by GLightbox · Last checked: Galleryberg 1.2.1 (November 2026)

A lightbox opens a gallery image full size in a popup when a visitor clicks it, so they can view and browse photos without leaving the page. In Galleryberg, select the gallery, open the Lightbox panel in the right sidebar, and turn on Enable Lightbox. The lightbox is off by default.

Product gallery created with Galleryberg

Turn on the lightbox #

  1. Select the gallery by clicking the Galleryberg icon in the block toolbar.
  2. In the right sidebar, open the Lightbox panel. It is a separate panel below Settings and is closed by default.
  3. Turn on Enable Lightbox. More options appear.
  4. Preview the page and click an image to test it.
How to Enable Lightbox
Lightbox options

Lightbox settings #

SettingWhat it doesOptionsDefault
Open EffectAnimation when the lightbox opensZoom, Fade, NoneZoom
Close EffectAnimation when the lightbox closesZoom, Fade, NoneZoom
Slide EffectAnimation when moving to the next imageSlide, Fade, Zoom, NoneSlide
Keyboard NavigationArrow keys move between images, Esc closesOn or offOn
LoopAfter the last image, go back to the firstOn or offOn
ZoomableVisitors can zoom in on the imageOn or offOn
DraggableVisitors can drag or swipe between imagesOn or offOn
Show captions in lightboxShows the image caption under the imageOn or offOff
Enable Thumbnails (Pro)Shows a strip of small previews for quick jumpingOn or offOff

Thumbnail options (Pro) #

With Galleryberg Pro, turning on Enable Thumbnails adds three more settings:

  • Thumbnail Position: Bottom (default), Top, Left, or Right.
  • Thumbnail Navigation: Direct (Instant) jumps straight to the clicked image. Step by Step moves through each image in between.
  • Navigation Speed: for Step by Step, the time between steps, from 5 to 300 milliseconds. Lower is faster. Default is 10.

See Lightbox Thumbnails Strip.

See it in action #

Frequently asked questions #

Does the lightbox work on phones? #

Yes. Visitors can swipe between images and pinch to zoom. Update to Galleryberg 1.2.0 or later, which fixes the lightbox not opening on some touch devices.

How do I turn the lightbox off? #

What happens to image links when the lightbox is on? #

Does the lightbox work with overlay captions? #

Updated on November 14, 2026

What are your feelings

  • Happy
  • Normal
  • Sad