WPML
Status
Resolved
Reported for
WPML Multilingual CMS 3.6.0
Resolved in
3.6.3

Overview of the issue

This is a possible compatibility issue with some themes or 3rd part plugins. The language switcher is actually inserted in the theme (the HTML markup is visible), but the string for each menu item is empty.

The reason is that some themes or 3rd part plugins are stripping HTML tags or truncating the menu label.

Workaround

As a temporary solution, we created a raw text template for menu items. Please follow the instructions below:

1. Download the template ZIP here: https://github.com/OnTheGoSystems/Text-Menu-Item-Template/archive/master.zip
2. Extract this template folder into {your-theme-folder}/wpml/templates/language-switchers/ (you should have the template files in {your-theme-folder}/wpml/templates/language-switchers/Text-Menu-Item-Template/).
3. Go to the WPML -> Language page and scroll to the Menu language switcher section.
4. Add or edit a language switcher for menus.
5. Use the Language switcher style dropdown to select the Your theme – Text Menu Item option (where “Your theme” is the name of the site’s active theme) and save.

Note: As this template does not contain any HTML tag, the option to include a flag is disabled.

All known issues →