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

    (@awelzel)

    This is a WooCommerce based site. WooCommerce has its own version of Photoswipe. Lightbox with Photoswipe can not be used with WooCommerce product pages.

    Plugin Author Arno Welzel

    (@awelzel)

    In addition: you can either disable Lightbox with Photoswipe manually on WooCommerce product pages or use the filter in your theme functions.pphp as described in the FAQ (“How to disable the plugin in certain pages/posts”):

    
    // Disable Lightbox with PhotoSwipe on WooCommerce product pages
    
    function my_lbwps_enabled($enabled, $id)
    {
        if (function_exists('is_product')) {
            if (is_product()) return false;
        }
    
        return $enabled;
    }
    
    add_filter('lbwps_enabled', 'my_lbwps_enabled', 10, 2);
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘does not open the image correctly’ is closed to new replies.