Created
April 23, 2017 05:40
-
-
Save Bobz-zg/e845b04efd6075006f709cd9873e95f4 to your computer and use it in GitHub Desktop.
Enable Gallery in single product template in WooCommerce 3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WooCommerce 3.0 gallery fix | |
*/ | |
add_action( 'after_setup_theme', function () { | |
add_theme_support( 'wc-product-gallery-zoom' ); | |
add_theme_support( 'wc-product-gallery-lightbox' ); | |
add_theme_support( 'wc-product-gallery-slider' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment