Multiple lightbox portfolios on one page using native WordPress shortcodes

Hi,
I want to setup multiple lightbox portfolios on one page using native WordPress shortcodes like this (based on x lightbox documentation https://theme.co/apex/forum/t/shortcodes-lightbox/165):
[gallery link=“file” columns=“9” size=“medium” ids=“1068,1069,1070,1071,1072,1077,1076,1075,1074,1073”]
[lightbox selector=".gallery-icon a” thumbnails=“true” ]
[gallery link=“file” columns=“9” size=“medium” ids=“1074,1075,1076,1077,1078,1079,1100,1101”]
[lightbox selector=".gallery-icon a” thumbnails=“true”]
The problem is that (using the same selector) all lightboxes show the images of all galleries (and not only the images of one the gallery).
How can I identify every gallery and the selector corresponding to the this gallery in such a way that lightbox shows only the images of that gallery?
I´ve tried adding a different id to each one:
[gallery id=“example” link=“file” columns=“9” size=“medium” ids=“1068,1069,1070,1071,1072,1077,1076,1075,1074,1073”]
But I don´t know how to identify the lightbox selector for this gallery.
Can you help me please?
Thank you

Hi There,

Please try with this shortcodes instead:

[gallery link="file" columns="9" size="medium" ids="1068,1069,1070,1071,1072,1077,1076,1075,1074,1073"]
[lightbox selector="#file a" thumbnails="true" ]

[gallery link="file1" columns="9" size="medium" ids="1074,1075,1076,1077,1078,1079,1100,1101"]
[lightbox selector="#file1 a" thumbnails="true"]

Hi,
Lightbox doesn´t work. Check it:
https://clinicanoval.com/a-prueba01/

Your galleries’ ID are gallery-1 and gallery-2 respectively. Please use that in the lightbox selector instead of file and file1 given in the previous shortcode.

Thanks.