From 3bfdc7996f397003802aa6fca4a5dddfd9a337fd Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 5 Jun 2018 19:46:35 -0600 Subject: [PATCH] Remove Add-To-Cart Function There is no need for this, as the modified template file is provided. Including only the function may be confusing for users. --- inc/woocommerce.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 9d42fd98..81258c58 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