Skip to content

Snippet: Remove All WooCommerce Theme Styles

If you don't want the theme to style any WooCommerce elements, either because you want to do it yourself or you are using plugins that completely modify how WooCommerce works and looks you can use the following snippet.

// Remove the theme's WooCommerce CSS
add_action( 'wp_enqueue_scripts', function() {
	wp_dequeue_style( 'wpex-woocommerce' );
	wp_dequeue_style( 'wpex-woocommerce-shop-table-smallscreen' );
	wp_dequeue_style( 'wpex-woocommerce-cart-smallscreen' );
	wp_dequeue_style( 'wpex-woocommerce-account-page' );
	wp_dequeue_style( 'wpex-woocommerce-account-page-largescreen' );
}, 100 );
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