This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to dequeue WPML stylesheets from the code for optimization purposes.
Solution:
To disable the “wpml-legacy-horizontal-list-0-css” and “wpml-menu-item-0-css” files, please add the below code in your theme functions.php file:
Also I defined the constants:
define('ICL_DONT_LOAD_NAVIGATION_CSS', true);
define('ICL_DONT_LOAD_LANGUAGE_SELECTOR', true);
define('ICL_DONT_LOAD_LANGUAGES_JS', true);
But nothing seems to work. What am I doing wrong here?
Thank you for contacting WPML Support. To disable the “wpml-legacy-horizontal-list-0-css” and “wpml-menu-item-0-css” files, please add the below code in your theme functions.php file:
If still the issue persists, please take a complete backup of your site and update WPML plugins to the latest 4.6 version and see if this resolves your issue.