GLightbox Gallery Feature Demo #

This post demonstrates the new gallery shortcode functionality using GLightbox. Galleries allow you to group related images together and navigate through them in the lightbox viewer.

Here’s a gallery of conference photos. Click any image to open the lightbox, then use arrow keys or on-screen controls to navigate between images in the gallery.

This is a separate gallery showing development environment screenshots. Notice how these images are grouped separately from the conference gallery above.

How It Works #

The gallery shortcode system consists of two parts:

  1. Gallery Container - Wraps images in a responsive grid layout
  2. Gallery Images - Individual images that belong to the same gallery group

Usage Example #

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{{< gallery name="my-gallery" >}}
  {{< gallery-img
      src="/path/to/image.jpg"
      title="Image Title"
      caption="Detailed description shown in lightbox"
      pos="bottom" >}}
  {{< gallery-img
      src="/path/to/another.jpg"
      title="Another Image"
      caption="More details here" >}}
{{< /gallery >}}

Features #

Comparison with Single Image Shortcode #

You can still use the original gbox shortcode for standalone images:

The standalone image opens independently and doesn’t group with the galleries above.