diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 9d42fd9..81258c5 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -13,7 +13,7 @@ if ( ! function_exists( 'understrap_woocommerce_support' ) ) { */ function understrap_woocommerce_support() { add_theme_support( 'woocommerce' ); - + // Add New Woocommerce 3.0.0 Product Gallery support add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-zoom' ); @@ -136,16 +136,3 @@ if ( ! function_exists ( 'understrap_wc_form_field_args' ) ) { return $args; } } - - -/** -* Change loop add-to-cart button class to Bootstrap -*/ -add_filter( 'woocommerce_loop_add_to_cart_args', 'understrap_woocommerce_add_to_cart_args', 10, 2 ); - -if ( ! function_exists ( 'understrap_woocommerce_add_to_cart_args' ) ) { - function understrap_woocommerce_add_to_cart_args( $args, $product ) { - $args['class'] = str_replace('button','btn btn-outline-primary', 'button'); - return $args; - } -} \ No newline at end of file