Created
February 9, 2018 12:36
-
-
Save chetansatasiya/709ae39252137afaa60cc6fd14ecebf5 to your computer and use it in GitHub Desktop.
Disable the WooCommerce 3.+ default lightbox
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 | |
| add_action( 'after_setup_theme', 'cs_remove_woo_gallery_lightbox', 100 ); | |
| function cs_remove_woo_gallery_lightbox() { | |
| remove_theme_support( 'wc-product-gallery-lightbox' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment