Softedge Docs
v1.13.0 Index

Lightbox

Enable

Image and video lightbox powered by GLightbox. Requires the JS module in the child theme.

functions.php JS module
main.scss CSS — required

GLightbox CSS is not included in the parent theme bundle. Import it in the child main.scss or load the CDN stylesheet.

Basic Usage

Auto-initialized — just add the .glightbox class to any link.

.glightbox

Video

Link directly to a YouTube or Vimeo URL. Videos autoplay when opened.

YouTube / Vimeo

Point the href to any YouTube or Vimeo URL. GLightbox detects the provider automatically.

Captions & Descriptions

Add title and description via data-glightbox attributes.

data-glightbox

Configuration

GLightbox is auto-initialized with sensible defaults. No extra setup needed.

Default options
Option Value Description touchNavigation true Swipe to navigate on touch devices loop true Loop back to first slide after last autoplayVideos true Auto-play videos when opened
On this page