Are you one of the millions of people who updated to WooCommerce version 3.0 in the last few weeks?
Then I bet you ran into this issue: the new version breaks your product image galleries.
Why did this happen? It’s because WooCommerce added new gallery features and removed old ones, and your theme doesn’t have the code it needs to show off the new look.
What’s the solution? It’s easy! Just add this code into your functions.php file.
(If you don’t know where that is, watch the Ultimate WordPress Dashboard and Theme Files Tutorial. )
Add this code to your functions.php file to fix your image gallery:
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’ );
}
That’s all for now! If you are having an issue with WordPress, just ask! It might turn into the next blog post or tutorial.
Want to get more simple DYI design tips and strategic marketing advice? Then sign up already!
Leave a Reply