Skip to content Skip to sidebar

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.

This topic contains 6 replies, has 1 voice.

Last updated by juanG-46 1 month, 2 weeks ago.

Author Posts
February 28, 2026 at 9:30 pm #17862217

juanG-46

Site is English, Spanish and French. WPML Language Switcher is attached to a menu named Language Switcher. That menu is assigned to the LearnDash Focus Mode dropdown. The switcher appears in the English dropdown only showing French, in the Spanish dropdown showin French, and in the French dropdown showing Spanish

February 28, 2026 at 11:02 pm #17862309

juanG-46

Is there an alternate method to display a language switcher on a LearnDash Focus Mode page?

March 1, 2026 at 6:55 am #17862433

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hello,

Welcome to WPML support. You used the correct method in WPML > Languages. In the screenshot that you showed from WPML > Languages for the Focus Menu, there is a checkbox called, Current Language. If you click that, WPML will also show the current language flag if that is what you want.

If there is a styling issue, I might be able to check the live website and try to see if I can find a fix.

But it seems I will need login information to see the focus menu. Am I correct? If yes, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

March 2, 2026 at 8:03 am #17863469

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you forthe login information. I do see the issue that you are experiencing.

It seems that the injection of the menu in the focus mode of Learndash does not include the looping and it only shows the first generated menu item and thats it.

This might be a code-related issue. One thing is to make sure that the same thing happens on the latest version of WPML CMS Multilngual and WPML String Translation. Currently you use older verion.

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.

For more information:
https://wpml.org/faq/install-wpml/#automated-updates

If the issue persists even in the new version, this might be a compatibility problem.
To be able to report the compatibility issues we need to replicate the issue on a clean installation.
I created a clean installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
hidden link

Kindly follow the steps below:

- Install Learndash
- Enable the Focus Mode fromthe settings
- Add a sample Course
- Add a sample lesson inside the course.
- Translate them to French and Spanish
- Add a menu and set it with the learndash location.
- Go to WPML > Languages and add a language switcher to that menu
- See if it is possible to replicate the problem.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Thanks.

March 3, 2026 at 7:39 pm #17869978

juanG-46

Working on this. Will be back.

March 3, 2026 at 8:00 pm #17870040

juanG-46

I'm getting all sorts of errors in the sandbox:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ld-multilingual domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/sites/blue-banjo/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the sitepress-multilingual-cms domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/sites/blue-banjo/wp-includes/functions.php on line 6131

March 4, 2026 at 8:52 pm #17873073

juanG-46

Just by accident I discovered that the footer language switcher works in Focus Mode, and is actually a better choice since unregistered users don't even see the drop-down menu.

I wouldn't call this resolved, but it's no longer n issue for me. 🙂

Thanks for your help!