Disable WooCommerce default style

Styles the Disable WooCommerce //
DEFINE ( 'WOOCOMMERCE_USE_CSS', to false);

disable the default style, the style will introducing its own, can be directly written in the style.css may also write a stylesheet
    
function wp_enqueue_woocommerce_style () {
    wp_register_style ( 'woocommerce ', get_template_directory_uri ().' /css/woocommerce.css');
    IF (class_exists ( 'woocommerce')) {
        wp_enqueue_style ( 'woocommerce');
    }
}
the add_action ( 'wp_enqueue_scripts',' wp_enqueue_woocommerce_style ');

  if stylesheet uses wooCommerce default picture, the picture should also be woocommerce / assets / images folder is copied to the theme directory.

Guess you like

Origin www.cnblogs.com/lzj87980239/p/11287242.html