Tagged: Lightbox
-
AuthorPosts
-
February 22, 2016 at 4:14 pm #587241
Hi team!
I’m trying to set independent galleries in a page that each one, with a link, starts a lightbox with specific images.
See page
The problem is that lightbox plays all the images in the page, not only the specific I want. (make click in “VER GALERIA>”)
I’ve tried with rel=”lightbox[gallery1]” and with data-rel=”gallery-1″ but it’s seems that I am groping in the dark because it stills doing the same.
See page
Does it works in any way or I’m trying to do the impossible?
Do I need another plugin?Thanks in advance!!
February 23, 2016 at 3:01 pm #587733Anyone?
February 25, 2016 at 12:00 pm #588957Hi!
Set a class of
avia-gallery
to the parent element of each Gallery.Best regards,
JosueFebruary 26, 2016 at 9:57 am #589616Hi Josue,
Thank you for your answer.
With parent element of each gallery, you mean the parent of the link that opens the gallery?
Regards!February 26, 2016 at 11:10 am #589653Hm no, you’re using Gallery shortcode right? then do it like this:
<div class='avia-gallery'>[gallery]</div>
Regards,
JosueFebruary 26, 2016 at 11:27 am #589659Sorry Josue, I think it’s not working because of the trigger link
<a class="avia-gallery" style="text-align: left; color: #006953;" href="http://websyapps.es/nuevalescasotes/wp-content/uploads/2016/01/Masia-Les-Casotes-ideas-decoracion-02.jpg" rel="lightbox">VER GALERÍA ></a> <div class="avia-gallery"> [gallery link="file" ids="977,976"] </div>
because this only shows the link image in a lightbox, but not the gallery.
Sorry for my ignorance and thanks for your help, I appreciated it too muchFebruary 26, 2016 at 11:33 am #589665Hey!
It’s working as expected, Enfold’s popup activation recognizes each “avia-gallery” as a unique group, so if you want to merge both the trigger link and the actual gallery in a single group you’d need to change it:
<div class="avia-gallery"> <a style="text-align: left; color: #006953;" href="http://websyapps.es/nuevalescasotes/wp-content/uploads/2016/01/Masia-Les-Casotes-ideas-decoracion-02.jpg" rel="lightbox">VER GALERÍA ></a> [gallery link="file" ids="977,976"] </div>
Best regards,
JosueFebruary 26, 2016 at 11:44 am #589674Oh yeah!!
It worked fine!!!
Thank you very very much, I had no idea of this
Infinitamentte agradecido Josue!!
Regards!!February 26, 2016 at 11:55 am #589685De nada, un gusto poder ayudado.
Saludos,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.