Created
May 3, 2017 15:11
-
-
Save jcamp/375448ec94b4ff8a4b10b0d3b643ccc8 to your computer and use it in GitHub Desktop.
Wordpress theme support for WooCommerce gallery and zoom
This file contains 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
If using the latest WooCommerce (as at [20170503]) add this to your theme to support the new zoom, slideshow and gallery. | |
functions.php | |
//--------------------------------------------------------------------- | |
// WOOCOMMERCE | |
//--------------------------------------------------------------------- | |
add_action( 'after_setup_theme', 'ss_setup' ); | |
function ss_setup() { | |
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