Great article by Colm Troy that helped me figure this out. He does a great job of explaining everything in detail, but the gist is that Woo removed the PrettyPhoto lightbox option in 3.0 and added some new options. But they don’t seem to take affect automatically. You’ll need to add a little code to your functions.php file:
add_action( 'after_setup_theme', 'yourtheme_setup' ); function yourtheme_setup() { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); }
You may want to see what you’re getting into before you add this code (and you should), or you may need a little CSS. To find both, please see the full article below:
https://createandcode.com/broken-photo-gallery-and-lightbox-after-woocommerce-3-0-upgrade/
Leave a Reply