Woocommerce 3.0 lightbox
Closed this issue · 2 comments
The light box is disabled after the update.
https://colorlib.com/wp/forums/topic/updated-to-woocommerce-3-0-0-and-now-lightbox-is-disabled/
Hi,
The new Woocommerce version has a built in lightbox, slider and zoom for the product images to enable that you need to add a little code to your functions.php file. ( do that from your child theme’s functions.php file, if you don’t have a child theme create one, https://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme )
After that put this code,
add_action( 'after_setup_theme', 'activello_theme_setup' );
function activello_theme_setup() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}
PS: If you don’t want the zoom functionality then don’t add this line, add_theme_support( 'wc-product-gallery-zoom' ); likewise for other functionality, you can remove them by not adding that. 🙂
We will update that in the next update. :) Thanks for the headsup. 👍
Let us know,
Thanks,
laranz.
This has been implemented. Update will be released shortly.