This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to add a language switcher to the right side of the top bar on your site using WPML, but when you use the shortcode
[wpml_language_selector_widget]
, it displays as a text string instead of rendering the language switcher.
Solution:
The issue might be that the PHP code necessary to execute the shortcode is not running in the widget or custom area where you are trying to add it. This could be due to the code being added in the WordPress backend rather than directly in the theme files. We recommend trying to add the shortcode
[wpml_language_selector_widget]
directly into your theme files where you want the language switcher to appear. If you are not sure how to do this, please refer to our documentation on Adding Language Switchers using PHP and Shortcodes.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly 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. If you still need assistance, please open a new support ticket in our 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 2 replies, has 0 voices.
Last updated by 1 week, 2 days ago.
Assisted by: Mihai Apetrei.