Lightbox info

Hi all,
I’m using the lightbox shortcode into X PRO.

I created a row with 3 columns and inserted on each one a text field.
Each text field is like this:

[image src="/wp-content/uploads/2018/02/dev.png" alt=“bbb” link=“true”]
[lightbox]

Problem is when I click lightbox works well but I see on the background the pictures.

This is the link to understand the issue.
Is the first row with 3 images.

thanks

Maybe there’s a better approach to put down a case study with images?
Any advice is appreciated

Hi There,

Please update your shortcode to this:

[image class="my-images" src="/wp-content/uploads/2018/02/dev.png" alt="bbb" link="true"]
[lightbox selector=".my-images"]

Let us know how it goes!

thanks guys,
I can still see some images in the background once I click.
If you want to check yourself:

Hi There,

You just need 1 lightbox shortcode only.

I’ve deleted the first & second one.

Everything is working fine now.

Cheers!

1 Like

Thanks works great.

Is it 1 lightbox code per row, per page or per section?

thanks
K

Hi There,

One lightbox shortcode per selector.

Example:

[image class="my-images-1" src="/wp-content/uploads/2018/02/dev.png" alt="bbb" link="true"]
[image class="my-images-1" src="/wp-content/uploads/2018/02/dev1.png" alt="bbb" link="true"]

[lightbox selector=".my-images-1"]
[image class="my-images-2" src="/wp-content/uploads/2018/02/dev3.png" alt="bbb" link="true"]
[image class="my-images-2" src="/wp-content/uploads/2018/02/dev4.png" alt="bbb" link="true"]

[lightbox selector=".my-images-2"]

Hope it helps :slight_smile:

1 Like

thanks guys

1 Like

You’re welcome.

Hi Thai sorry to bother you again I tried the multi lightbox option but it doesn’t work.
What you mean exactly by “One lightbox shortcode per selector”? What is a selector on X Pro?

I used this code:

Hi There,

That means one lightbox shortcode per gallery, and for you to have multiple instances of lightbox you need to set them with different selectors. Which is basically what you’re doing with your shortcode.

Responsive Lightbox shortcode

The issue there it seems you have a pretty quote on your shortcode, rewrite all the quotes on your shortcode from this to this "

I think you got that pretty quotes from copying shortcode somewhere.

Thanks,

1 Like

Yes somehow I missed those thanks for the help guys

Glad to hear we managed to help!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.