Hello friends, today I will show you how to disable woo commerce styles in your theme. When we build our eCommerce website using WooCommerce, it comes with all eCommerce features including its own js and CSS file managing WooCommerce. So when you convert your own HTML eCommerce template to a WooCommercesupported theme, then you will face some problems regarding js and CSS conflicting. So your theme will mess up. So today I will give you a solution to disable woo commerce styles.

To disable WooCommercestyles, we use woocommerce hook “woocommerce_enqueue_styles”. Using this hook we can tell WooCommerce to not use the default woocommerce.css. Add the following to your functions.php file.



With this above code, our theme will no longer use the WooCommerce stylesheet. Now we can build your own desired layout/style from scratch.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
How to disable woocommerce styles in my theme
Tagged on: