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.
Tagged: Documentation request
This topic contains 30 replies, has 1 voice.
Last updated by wdburgdorf 1 day, 22 hours ago.
Assisted by: Paola Mendiburu.
Author | Posts |
---|---|
May 14, 2025 at 11:43 am #17031923 | |
wdburgdorf |
Please have a look at function styleLanguageSwitcher() in Could that not be somewhat related to it? |
May 14, 2025 at 11:47 am #17031943 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Hi Ralf, Can you add the custom language switcher to the sandbox site? That way we can take a deeper look and check if there is something buggy on our code 🙂 |
May 14, 2025 at 11:53 am #17031962 | |
wdburgdorf |
Sorry, Carlos, it is indeed not the Custom switcher, but the switcher Gutenberg block. |
May 14, 2025 at 11:58 am #17031972 | |
wdburgdorf |
There you go: hidden link |
May 14, 2025 at 12:07 pm #17031988 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Thanks! Quick question: You just added the Gutenberg block with the language switcher, no additional code, correct? |
May 14, 2025 at 12:16 pm #17032045 | |
wdburgdorf |
Yes, no code, I'm not cheating ... 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. |
May 14, 2025 at 12:31 pm #17032265 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Thank you very much! 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. |
May 14, 2025 at 12:40 pm #17032289 | |
wdburgdorf |
Thanks a lot for your efforts, Carlos! |
May 15, 2025 at 9:28 am #17035940 | |
Paola Mendiburu WPML Supporter since 11/2020
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Madrid (GMT+02:00) |
Hi there! This is Paola and I will continue with the ticket as Carlos is on holidays. The issue has been escalated to the second tier. I will let you know when I have some news. Thanks. |
June 28, 2025 at 1:11 pm #17179367 | |
wdburgdorf |
Hi Paola, It's been a month and a half now, has anything happened regarding this? Any news from the developers? Thanks! |
June 30, 2025 at 8:32 am #17181759 | |
Paola Mendiburu WPML Supporter since 11/2020
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Madrid (GMT+02:00) |
Hi there! I hope you are well! There is a workaorund. Please go to the file /wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Loader.php And on the function: private function styleLanguageSwitcher() { if ( in_array( self::BLOCK_LANGUAGE_SWITCHER, $this->cssLoaded, true ) ) { return ''; } $this->cssLoaded[] = self::BLOCK_LANGUAGE_SWITCHER; $css = file_get_contents( WPML_PLUGIN_PATH . '/dist/css/blocks/language-switcher.css' ); return $css ?: ''; } In that method, you can add this code: f (defined('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS')) { return ''; } and this will return nothing for the CSS and fix the issue. |
June 30, 2025 at 8:53 am #17182033 | |
wdburgdorf |
Yes, that works, thank you, Paola! But is that not going to be overwritten by the next update? |
June 30, 2025 at 9:02 am #17182079 | |
Paola Mendiburu WPML Supporter since 11/2020
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Madrid (GMT+02:00) |
It has been updated to the developers to be fixed in the upcoming release. |
June 30, 2025 at 9:14 am #17182267 | |
wdburgdorf |
That's good news, thank you. I hope they will also remove the inline styles: <ul ... style="--language-spacing:NaNpx;flex-wrap:nowrap"> <li ...> |
June 30, 2025 at 3:00 pm #17185223 | |
Paola Mendiburu WPML Supporter since 11/2020
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Madrid (GMT+02:00) |
Yes. The issues has been escalated to Developres to be included on the upcoming release. |