This thread is resolved. Here is a description of the problem and solution.
Problem:
I added a language switcher with:
do_action( 'wpml_add_language_selector' )
Where can I customize it in the dashboard?
Solution:
The do_action('wpml_add_language_selector') action outputs the language switcher based on the options set in the "Custom Language Switchers" section in "WPML > Languages".
- Go to that section and make sure the switcher is enabled
- Click on "Customize", and make sure that "Language name in current language" is not selected
- Click on "Save"
- Clear any cache you may have
Hi we want to change something and the theme developer is very slow but also maybe he needs some reference
He is calling
do_action( 'wpml_add_language_selector' ) in an elementer widget
but in the image it shows the
Language name in current language (I think it is what it is called)
Welcome to the WPML support forum.
The do_action('wpml_add_language_selector') action outputs the language switcher based on the options set in the "Custom Language Switchers" section in "WPML > Languages".
- Go to that section and make sure the switcher is enabled
- Click on "Customize", and make sure that "Language name in current language" is not selected
- Click on "Save"
- Clear any cache you may have: from plugins or server sided
- Even cache from WPML: In "WPML > Support > Troubleshooting (link)", click on "Clear the cache in WPML"
it states "This action hook does not have any parameters." but that is wrong and it does not point you to what you pointed me to , so it displays as the user wishes 🙂
Good observation. I opened a ticket with the documentation team to specify which language switcher:
Displays the drop down language selector as configured from the “WPML->Languages->Custom Language Switchers” admin screen
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.