Skip to content

Instantly share code, notes, and snippets.

@flexseth
Created May 2, 2020 02:34
Show Gist options
  • Save flexseth/c9d7a89a21db4a48a912bed74d0eac3f to your computer and use it in GitHub Desktop.
Save flexseth/c9d7a89a21db4a48a912bed74d0eac3f to your computer and use it in GitHub Desktop.
Add theme support for WooCommerce Lightboxes, Zoom, Other Image Enhancements
<?php
// Add product gallery support.
if ( class_exists( 'WooCommerce' ) ) {
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
add_theme_support( 'wc-product-gallery-zoom' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment