Open VP gallery lightbox by clicking any button
-
How to open a Visual Portfolio gallery lightbox by clicking any button?
I’m using (DIVI and) Simple Gallery, but i’d like to change this to Visual Portfolio gallery.
I used this function with Simple Gallery with the code below:jQuery(document).ready(function(){
jQuery(‘.pa-gallery-trigger’).click(function(){
jQuery(‘.pa-gallery .et_pb_gallery_item:nth-child(1) img’).click();
});
});..the button class is: pa-gallery-trigger
..the gallery class is: pa-galleryThank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.