This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs to create a pop-up window for users to choose a language when accessing the website and wants to use the WPML language selector in a different format than the global setting allows.
Solution:
We explained that there is only one global setting for the custom language switcher. If the client requires different layouts for two custom language switchers, they should use the [wpml_language_switcher] shortcode and customize it accordingly. We provided documentation links to guide them:
- Custom Language Switcher
- Shortcode for Language Switcher
- Adding Language Switchers using PHP and Shortcodes
We also mentioned that it's not possible to change between 'Dropdown' or 'List' styles with the shortcode as this is a global setting. An alternative is to output the language switcher using PHP code, as described in a forum thread: Two Different Custom Language Switchers.
We noted that achieving the desired result may require code customization, which is beyond our support policy's scope. If the client encounters difficulties, we recommend consulting with experienced WordPress Developers knowledgeable in WPML: WPML Contractors.
Please note that the solution provided might be outdated or not applicable to your case. If so, we encourage you to check the related known issues, verify the version of the permanent fix, and ensure you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket: 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.
This topic contains 1 replies, has 2 voices.
Last updated by 1 year, 1 month ago.
Assisted by: Mateus Getulio.