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?
How to disable CSS
Posted in Affiliates Pro
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?
Follow us! We post news and tutorials related to our tools, WordPress and WooCommerce on these platforms:
Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account
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!
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
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.
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 usedsmoothness
Ahhh, awesome! Thank you, sir.
My pleasure 🙂
Hi there, yes, for example using the method described in How to disable scripts and styles.