Prevent from PhotoSwipe being loaded two times after activation of WooCommerce
-
I am developing theme, which is using PhotoSwipe library for lightbox feature. Latest WooCommerce is using the same library, so it is loaded two times. What is the best practice to keep the lightbox feature on WooCommece, but just prevent from loading js code of PhotoSwipe second time (added by WooCommerce)?
I have read about
remove_theme_support( 'wc-product-gallery-lightbox' );
, but I want to keep the slider feature and just remove the PhotoSwipe library (already loaded with theme files).Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Prevent from PhotoSwipe being loaded two times after activation of WooCommerce’ is closed to new replies.