Deregister style.css in WordPress
css, php, stylesheet, wordpress
Solution
According to Wordpress behavior, which requires to pass a handle when registering and de-registering a stylesheet, and as the default stylesheet "style.css" is registered with the handle "screen", we should use this code :
wp_dequeue_style('screen');
wp_deregister_style('screen');
Problem
Does anyone know if it's possible to deregister the default stylesheet of a theme, style.css, in WordPress? I've tried going wp_deregister_style('style') and wp_deregister_style('style.css'), but neither seems to work. I'm hoping to do this so I can optimise my site my combining my various stylesheets into one and minifying it with an Ant script.