• Resolved chzumbrunnen

    (@chzumbrunnen)


    The Light Box shows the caption of an image but strips HTML.

    I have a caption that includes a link (so I can open the image in the lightbox and don’t have to link it directly to a page)

    The caption works when the picture is on the page but disappears when it is opened in the lightbox.

    Is there a way (maybe a filter) I can keep HTML (or at least links) in the caption for the lightbox?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author arisoft

    (@arisoft)

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

    setTimeout(function() {
    $('.wp-caption').each(function() {
      var $el = $(this), $a = $(this).children('A'), $caption = $(this).find('.wp-caption-text');
      $a.attr('data-caption', $caption.html());
    });
    });
Viewing 1 replies (of 1 total)

The topic ‘No link in Caption’ is closed to new replies.