You need to add code to your child theme’s functions.php
file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php
file as this will be wiped entirely when you update the theme.
Disable all stylesheets
WooCommerce enqueues 3 stylesheets by default. You can disable them all with the following snippet:
https://gist.github.com/woogists/8af93b901eac5d4dc2fb1452516c1079
This is the recommended process if you’re building a custom theme. Removing the defaultย WooCommerce stylesheet and enqueuing your own will protect you duringย WooCommerce core updates.
Disable specific stylesheets
If you want to disable specific stylesheets (i.e, if you do not want to include the handheld stylesheet), you can use the following:
https://gist.github.com/woogists/1f779d37ecfda7fae76ce22b513fa4b6
Then enqueue your own stylesheet like so:
https://gist.github.com/woogists/bdd2a926e000f72bed3217200f203d53