Overview of the Issue
With the Twenty Twenty-Two theme, WordPress implemented the new Full Site Editing mode. Now, the menu should be added using a Navigation Block (opens in a new tab), instead of the traditional method through AppearanceMenus.
At the moment, it is not possible to add a language switcher to a menu created with the Navigation Block through the WPMLLanguagesMenu Language Switcher option.
Workaround
This issue is fixed in WPML 4.6.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.
You can add a language switcher using a shortcode.
- Add a menu using the Navigation Block.
- Click on the + icon to add a new item to the menu.
- In the text field, add a language switcher shortcode and hit enter. E.g. [wpml_language_switcher flags=1 native=1 translated=1][/wpml_language_switcher]
- Save the page.
- The language switcher should be displayed in the menu on front-end.