Lightbox does not work as it should

hi there,

i added 10 images to the page, gave them an class added a rw element and added the shortcode code.
but now the whole site is shown in the lightbox.

i saw that there is no # in the link field but looking to the url of the picture the # is in the link.
is that the problem?

thanks in advance for your help!

cheers

Hello Harald,

Thanks for writing in!

I have inspected your page and as it turns out that you are using the incorrect class selector. I have updated the shortcode and used this:

[lightbox selector=".img_gall1"]

Originally you were using .img_gall2 as the selector which is why it did not work for you.

Please check your site now.

hi,

still the same problem. i tried different classes because i thought it does not work with 10 images…
the whole website is in the lightbox now.
i beleive it has todo with the href?

thx in advance for your help

Hi Harald,

Yes, it’s due to href or link, you must add your image URL as a link too. Selecting an image will just display as a thumbnail that will act as a button or trigger, but it’s not part of lightbox. The one that lightbox pick is the URL of the link and not the source of the image.

Thanks!

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