mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://stackoverflow.com/questions/46353307/navigation-arrows-in-woocommerce-3-x-product-gallery-slider
21 lines
644 B
Text
21 lines
644 B
Text
add_filter('woocommerce_single_product_carousel_options', 'wc_update_woo_flexslider_options');
|
|
function wc_update_woo_flexslider_options($options) {
|
|
// show arrows
|
|
$options['directionNav'] = true;
|
|
$options['animation'] = "slide";
|
|
|
|
// infinite loop
|
|
$options['animationLoop'] = true;
|
|
|
|
// autoplay (work with only slideshow too)
|
|
$options['slideshow'] = true;
|
|
//$options['autoplay'] = true;
|
|
|
|
// control by text (boolean) or by thumbnails
|
|
// $options['controlNav'] = true;
|
|
//$options['controlNav'] = "thumbnails";
|
|
|
|
// $options['mousewheel'] = true;
|
|
|
|
return $options;
|
|
}
|