Lightbox PopUp with Image Carousel? - Forum | JoomShaper
Solved SP Page Builder

Lightbox PopUp with Image Carousel?

Asked by Melissa 5 years ago Last activity 4 years ago

Just wondering if it's possible to have a lightbox feature with the images in the image carousel section from Page Builder?

If not, is there another way to achieve a strip of images that open in lightbox?

Accepted answer

Marked as the solution
Pavel
5 years ago · edited

Hi. Add in link field link to image with a slash before(!). And add your class.

If you use Helix, create custom.js file following Helix documentation.
Add this code to custom.js replacing .custom-class to your own class.

jQuery(function ($) {
  $('.custom-class .sppb-carousel-extended-outer-stage').magnificPopup({
      delegate: 'a',
      type: 'image',
      gallery: {
          enabled: true
      }
  });
});

4 more replies

Melissa Asked this

Thank you! This worked like a charm.

Ariba Staff

Thank you Pavel for sharing the solution, we appreciate your kind gesture.

Have a nice day!

Belinda Frylinck

Hello

I have the exact same problem. Pavel's workaround unfortunately did not work on my site. Any other workarounds please?

thank you

Log in to reply.