WPML plugin comes with its own CSS file. I want to get rid of all the CSS it contains, so I put everything between
/* */. However I'll have to do that again when I'll update the plugin. Is there a way to "unload" a CSS file ?
You can use wp_dequeue_style function, with a wp_enqueue_script hook with priority higher than WPML's wp_enqueue_script hook. Put the following code into your functions.php:
REPLACE 'wmpl_style_handle' with the handle WPML registers/enqueues the style.
UPDATE: I have just had a look into WPML and it looks that it doesn't use wp_enqueue_script to include language-selector.css, But the good news is that there is a constant which you can set to prevent loading of the language selector styles. Just add the line below to your functions.php: