• Resolved amedicidesign

    (@amedicidesign)


    Hi I love your plugin! But I cant seem to find out how to show my captions or descriptions along with the title in the lightbox. Is this possible?

    Thanks!

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

    (@arisoft)

    Hi

    Do you use a gallery plugin which generates images with titles and descriptions? Is it possible to see a sample page?

    Thread Starter amedicidesign

    (@amedicidesign)

    example

    Notice the captions on some of the images. Some are too long to show but when the lightbox opens, it doesnt show any captions. I am using Foo Gallery.

    • This reply was modified 5 years, 4 months ago by amedicidesign.
    Plugin Author arisoft

    (@arisoft)

    Open “ARI Fancy Lightbox -> Advanced” page and populate “Custom JS code” parameter with the following code:

    $('.fg-item A').each(function() { var $el = $(this), title = [$el.attr('data-caption-title'), $el.attr('data-caption-desc')].filter((title) => title && title.length > 0);$el.data('caption', title.join('<br>')); });

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