photokengoldstein-com-au pro asked 6 years ago


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

dingleman free answered 2 years ago


‎‎‎bimbaratta brap ‎ ‎‎‎‎


Marta Wierzbicka staff answered 4 years ago


Hi,

please create a snippet showing the problem here: https://mdbootstrap.com/snippets/.

Best, Marta


Brian H free answered 4 years 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.


dingleman free commented 2 years ago

‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎


Marta Wierzbicka staff answered 6 years ago


Hi, I think this will be useful for you: https://mdbootstrap.com/javascript/lightbox/#lightbox-captions. Best, Marta

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags