Created
December 3, 2021 07:40
-
-
Save onemanparsons/a1da66a211b2238889d49c772eb67714 to your computer and use it in GitHub Desktop.
Customise the behaviour of WooCommerce slider on single-product
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
// Make Update WooCommerce Flexslider options | |
add_filter( 'woocommerce_single_product_carousel_options', 'ud_update_woo_flexslider_options' ); | |
function ud_update_woo_flexslider_options( $options ) { | |
$options['directionNav'] = true; | |
$options['animation'] = "slide"; | |
$options['animationLoop'] = true; | |
$options['slideshow'] = true; | |
$options['controlNav'] = false; | |
return $options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment