Andrei | удалил дефолтные стили вукомерса со страницы чекаута

dev_10_refactoring
parent cca90266dc
commit 97ba6b7497
  1. 8
      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' );
Loading…
Cancel
Save