Skip to content

Snippet: Remove All Core WooCommerce CSS

/**
 * Remove all WooCommerce CSS styles and allow you to fully design everything from scratch
 *
 */
function my_remove_all_woo_css() {
	wp_deregister_style( 'woocommerce-general' ); // Remove core css
	wp_deregister_style( 'woocommerce-smallscreen' ); // Remove core responsive css
	wp_deregister_style( 'wpex-woocommerce' ); // Remove total css
}
add_action( 'wp_enqueue_scripts', 'my_remove_all_woo_css', 9999 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top