Skip to content

Instantly share code, notes, and snippets.

@rexrony
Forked from wpbean/wpb-wiz-functions.php
Created October 26, 2018 18:01
Show Gist options
  • Select an option

  • Save rexrony/0498ccddb48554cc74dd75032c8e7352 to your computer and use it in GitHub Desktop.

Select an option

Save rexrony/0498ccddb48554cc74dd75032c8e7352 to your computer and use it in GitHub Desktop.
Add this code for disable WooCommerce Gallery Slider and FlexSlider script
<?php
/**
* Remove WooCommerce flexslider script & product gallery slider
*/
function wpb_wiz_after_theme_setup(){
remove_theme_support( 'wc-product-gallery-slider' );
}
add_action( 'after_setup_theme', 'wpb_wiz_after_theme_setup', 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment