I just want to dequeue all the woocommerce styles and the storefront styles
function ts_dequeue_styles() {
wp_dequeue_style('storefront-style');
wp_deregister_style('storefront-style);
}
add_action('init', 'ts_dequeue_styles');
add_filter('woocommerce_enqueue_styles', '__return_false');
This doesn’t work. Am I hooking into the wrong place, or is the storefront stylesheet getting loaded twice from somewhere? Pretty sure I don’t need the add_filter because it looks like storefront is taking care of it in the setup function.
-
This reply was modified 8 years, 2 months ago by pelachile.