Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    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.

    Thread Starter federico_a

    (@federico_a)

    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

    Plugin Author Arno Welzel

    (@awelzel)

    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?

    Plugin Author Arno Welzel

    (@awelzel)

    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.

    Thread Starter federico_a

    (@federico_a)

    perfect. thank you very much

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘strange behavior’ is closed to new replies.