How to disable CSS

Posted in
Tags

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?

7 Responses to How to disable CSS

  1. anthony July 8, 2013 at 1:15 am #

    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!

    • kento July 9, 2013 at 12:00 pm #

      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. anthony July 5, 2013 at 9:30 pm #

    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.

    • kento July 6, 2013 at 12:32 pm #

      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. anthony July 3, 2013 at 1:53 pm #

    Ahhh, awesome! Thank you, sir.

    • kento July 3, 2013 at 2:02 pm #

      My pleasure 🙂

  4. kento July 3, 2013 at 1:11 pm #

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

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share