How to disable CSS

Hey Kento! I’m trying to optimize as much as possible. I would like to just copy your css into my own css file, and not have to link to a separate file. Is there an easy way to do that?

Posted in
Tags

Comments

7 responses to “How to disable CSS”

  1. Hmmmm, well I currently have this: http://pastebin.com/NaTjZ18w in my functions file, but the css file is still being loaded on page load. Weird!

    1. You had an is_admin() check which effectively voids the whole thing because these scripts are loaded for the admin sections. Try http://pastebin.com/BMTpg5mA

  2. Sorry man, You don’t happen to remember what your styles were called do you? I found some css being called ‘smoothness’ in one of the files for the plugin. I’m trying to do what J Tadlock is saying to do in the link you posted. wp_deregister_style( ‘smoothness’ ); didn’t work. I also tried just ‘affiliates-pro’ in there as well.

    1. Hi Anthony, sorry I forgot to mention those, you need to wp_deregister_style these:

      • affiliates_admin
      • affiliates_pro_admin
      • affiliates_enterprise_admin when the Enterprise version is used
      • smoothness
  3. Ahhh, awesome! Thank you, sir.

    1. My pleasure 🙂

  4. Hi there, yes, for example using the method described in How to disable scripts and styles.

Share