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 9 years, 9 months ago by pelachile.
I wish that worked. All I get is a bad gateway error.
wp-json/posts?type=ws_menu
Not sure if it is the underscore in the CPT name though.
I am having the same problem