This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing an issue where some flags were not displaying in the language switcher on their mobile site. They were using the
do_action('wpml_add_language_selector');
PHP code and had selected "Dropdown" as the language switcher style.
Solution:
We recommended that the client ensure they pass the
type="custom"
attribute in the language switcher shortcode, like this:
[wpml_language_switcher type="custom" flags=1 native=1 translated=1][/wpml_language_switcher]
Then, they should navigate to WPML > Languages > Custom language switchers, click Enable, click Customize, and then select "Dropdown Click" in the Language switcher style.
We also provided a link to the documentation for further guidance: Custom Language Switcher documentation.
Additionally, we requested the client to provide debug information by following the instructions here: How to provide debug information.
If the solution provided is not relevant due to being outdated or not applicable to your case, or if you continue to experience issues, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket for further assistance at the 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 4 replies, has 4 voices.
Last updated by 1 year, 1 month ago.
Assisted by: Mihai Apetrei.