I can confirm that Canvas (And also my child theme) has been updated (Version 5.11.4) and is working correctly. If it doesnt work for you, then disable your child theme and see if it works with the canvas only theme. If it does, then please contact your child theme supplier (HappyFhantum).
To add/remove theme gallery support you need to add this code to your theme:
// Use the after_setup_theme hook with a priority of 11 to load after the
// parent theme, which will fire on the default priority of 10
add_action( 'after_setup_theme', 'woocommerce3_gallery_theme_support', 11 );
function woocommerce3_gallery_theme_support() {
ADD DESIRED CODE HERE
}
The DESIRED CODE can be this:
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
remove_theme_support( ‘wc-product-gallery-zoom’ );
remove_theme_support( ‘wc-product-gallery-lightbox’ );
remove_theme_support( ‘wc-product-gallery-slider’ );
For example, to remove the zoom option in the canvas theme:
add_action( 'after_setup_theme', 'woocommerce3_gallery_theme_support', 11 );
function woocommerce3_gallery_theme_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
}
Nore info here:
https://github.com/woocommerce/woocommerce/wiki/Enabling-product-gallery-features-(zoom,-swipe,-lightbox)-in-3.0.0
-
This reply was modified 7 years, 10 months ago by
edwinhamers.