Rynald0s
(@rynald0s)
Automattic Happiness Engineer
Hi there!
You’ll need to enable the new product gallery features by adding the following lines of code:
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
to your child theme’s functions.php file or via a plugin that allows custom functions to be added – such as My Custom Functions or Code Snippets plugin.
Cheers!
Thanks for answer, but it didn’t work.
I have the same problem. Also added the lines of code like above, but this is not working.. Do you have another option to fix this?
Rynald0s
(@rynald0s)
Automattic Happiness Engineer
Hi @canzontul / @diede33
See if this works:
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' );
}
This custom code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added – such as My Custom Functions or Code Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.
Cheers!
Hello Raynolds,
I have added these codes to functions.php but it is not working.
http://i.hizliresim.com/V0BgMZ.jpg
Hi
I tried the new codes, but it is still not working..
It is working, I refreshed the browser cache! Thank you!