• I use venobox for gallery in woocomerce -> product details, because default script for magnifying pictures was not working with Loose at all in this section of my site.

    Now it works but when I click thumbnail of additional product photo it opens 2 modal windows. One from venobox and one form magnific popup which I believe is defauld lightroom plugin for Loose template.

    Can you advise me how to turn off magnificPupup specifically for product details page?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Patryk Kachel

    (@limestreet)

    Hi @buehehe666

    it may depend on your configuration/customization, but – I think – adding something like that to child theme’s function.php file should help:

    add_action( 'wp_enqueue_scripts', function () {
    	if(is_product()) {
    		wp_dequeue_script( 'magnific-popup' );
    	}
    }, 20 );

    This snippet – basically – removes “magnific-popup” script from the page when product page is displayed.

    I hope it will help you to solve your problem ??

    Best,
    Patryk

Viewing 1 replies (of 1 total)
  • The topic ‘2 modals open when click on gallery image in woocomerce’ is closed to new replies.