On each image there are multiple event listeners for “click”. One comes from the “Allston” theme you use and there is another one registered through jQuery.
Maybe the theme or another plugin provides it’s own lightbox which conflicts with Lightbox with Photoswipe. Since “Allston” seems to be paid theme, you should ask them for support.
hi,
I found how to disable prettyphoto.
function remove_vc_prettyphoto(){ wp_dequeue_script( ‘prettyphoto’ ); wp_deregister_script( ‘prettyphoto’ ); wp_dequeue_style( ‘prettyphoto’ ); wp_deregister_style( ‘prettyphoto’ );
add_action( ‘wp_enqueue_scripts’, ‘remove_vc_prettyphoto’, 9999 );
I would like to ask which attribute should I insert a lighbox gallery.
Thanks
federico
There is no attribute to insert. Lightbox with PhotoSwipe will automatically use all images which are linked to the media file. At least for me your site it already works – what’s the problem?
In addition: if you want to allow visitors to change between the images in the lightbox, you must remove the attribute data-lbwps-gid
from the link. Also see the FAQ about this.
perfect. thank you very much