This thread is resolved. Here is a description of the problem and solution.
Problem: You need a simple language switcher with your own styling, but WPML is loading 90 default styles that you have to override. Solution: If you're implementing a custom language switcher and need to prevent WPML's default styles from loading, you can modify the code in your site. Specifically, you can edit the
Add the following code within this method to check if the constant
ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS
is defined, and if so, return nothing, effectively stopping the CSS from loading:
if (defined('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS')) {<br /> return \'\';<br />}
This solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
I changed block settings, so it looks more like mine, and switched on the second language in the switcher setting. I'm sure that has nothing to do with the code. You can just delete that switcher and add it again, it will be the same.
I was able to reproduce the issue, and I have escalated this ticket to our 2nd tier of support, where our 2nd tier specialists will take a deeper look at this issue.
We will keep you updated on the evolution of this ticket.
Thank you very much for your patience and understanding!