This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to display the language switcher in the top navigation menu of their website using Divi 4 and DonDivi's DiviMenus Flex. The language switcher is set as the third menu item with a link type of 'Sub', sourcing from a WP Menu labeled 'Language Switcher'. However, the menu does not display any languages and only shows an option to 'Customize the language switcher'. Additionally, in the backend, the language switcher menu item displays all pages, which the client wishes to hide while editing.
Solution:
To address the visibility of languages in the frontend, follow these steps:
1. Navigate to WPML → Languages → Hide languages and select the languages you wish to hide from visitors.
2. Go to Users → Profile and enable 'Display hidden languages' for your user account. This setting will hide the selected languages from visitors but will allow you to see them in the backend, facilitating your workflow without affecting the frontend display.
Regarding the issue in the Visual Builder where all pages are displayed instead of the language switcher:
1. Ensure that the 'WPML Switcher Only' menu is created in Appearance → Menus.
2. Place this menu in the desired section using the Visual Builder.
3. Check if the menu contains any items. If not, WordPress might display a list of pages as a fallback, which explains the behavior observed.
If these solutions do not resolve your issues or if the information becomes outdated, we 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. Should further assistance be needed, 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.




