Lightbox caption

mobile pro asked 2 years ago

How to get the Lightbox caption to only display in large image, and not when browsing the thumbnails.

Marta Szymanska staff pro premium answered 2 years ago

Hi, I think this will be useful for you: Best, Marta

Brian H answered 2 months ago

A couple of years late responding, but it's built into Lightbox. You just have to include data-title in the anchor element similar to the following example:

<a href="image.jpg" data-lightbox="photos" data-title="Caption goes here.">

This places the caption under the Lightbox image not the thumbnail.

Marta Szymanska staff pro premium answered 2 months ago


please create a snippet showing the problem here:

Best, Marta

Please insert min. 20 characters.


Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No