This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is unable to return to the English version of their website using the language switcher, as both flags in the header and footer direct to German.
Solution:
We commented out the following lines in the
wp-config.php
file to address the issue:
//define('WP_SITEURL', 'https://'.$_SERVER['HTTP_HOST']);<br />//define('WP_HOME', 'https://'.$_SERVER['HTTP_HOST']);We recommend clearing the site's cache to ensure the changes take effect and the language switcher functions correctly.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please visit our known issues page and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance.
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 year, 2 months ago.
Assisted by: Osama Mersal.
