• Resolved Josh Journey

    (@ljosh)


    Howdy, hoping all is well.

    When activating the checkbox ‘relativeCaption’ in LightGallery v2.7.0 it doesn’t display a photo caption in the lightgallery. Just to be double sure I used control+F which only pulls up the caption in the thumbnails shown on the post. When lightbox is open it doesn’t highlight. Then I opened up the browsers inspector with lightbox opened which the caption text only appears below the thumbnail image in post but not in lightgallery.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Savvas

    (@savvasha)

    Hi there @ljosh ,

    Unfortunately the “relativeCaption” plugin is undocumented, so I am not really sure how it should be used. https://github.com/sachinchoolur/lightGallery/issues/1389

    By default, lightGallery use the captions via data-sub-html attribute of the image. WordPress native gallery shortcode does not use that method. I will try a workaround on the next plugin update, that will add this attribute to the gallery shortcode.

    Thanks,
    Savvas

    Plugin Author Savvas

    (@savvasha)

    Version 1.7.0 is online. Please check it out and provide some feedback 🙂

    Thread Starter Josh Journey

    (@ljosh)

    Thank you Savvas! Caption works perfectly in lightbox. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘relativeCaption’ is closed to new replies.