title: dequeue (remove) woocommerce css stylesheets
body: <p>I am trying to dequeue the woocommerce style sheets from all pages except checkout/cart/receipt pages. </p>
  
  <p>The code form the woocommerce help page (<a href="http://docs.woothemes.com/document/disable-the-default-stylesheet/" rel="nofollow">http://docs.woothemes.com/document/disable-the-default-stylesheet/</a>) works to remove the stylesheets entirely. </p>
  
  <pre><code>add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
  </code></pre>
  
  <p>I tried to use this code but it does not work:</p>
  
  <pre><code>add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
  function child_manage_woocommerce_styles() {
  remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ));
  if ( function_exists( 'is_woocommerce' ) ) {
      if ( ! is_woocommerce() &amp;&amp; ! is_cart() &amp;&amp; ! is_checkout() ) {
  add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
  }}
  }
  </code></pre>