diff --git a/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php b/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php index d605aed..594bb6d 100644 --- a/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php +++ b/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php @@ -287,3 +287,11 @@ function remove_view_cart_button_js() { } +function custom_remove_woocommerce_styles_on_checkout( $enqueue_styles ) { + if ( is_checkout() ) { + return []; // Удаляет все стандартные стили WooCommerce только на странице checkout + } + + return $enqueue_styles; +} +add_filter( 'woocommerce_enqueue_styles', 'custom_remove_woocommerce_styles_on_checkout' ); \ No newline at end of file