Shopify Free Trial Apply
Shopify 60天试用
Shopify 14天试用

woocommerce产品详情页 zoom放大效果以及轮播图

只需在function文件中加入以下即可add_action( 'after_setup_theme', 'yourtheme_setup' );
 
function yourtheme_setup() {
    add_theme_support( 'wc-product-gallery-zoom' );
    add_theme_support( 'wc-product-gallery-lightbox' );
    add_theme_support( 'wc-product-gallery-slider' );
}
// 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;

    return $options;
}
1
2020-04-14

1 个评论

感谢分享。

要回复文章请先登录注册