Skip Navigation

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 0 replies, has 1 voice.

Last updated by michaelS-73 3 weeks, 5 days ago.

Author Posts
January 24, 2025 at 12:31 pm #16631291

michaelS-73

Background of the issue:
I am trying to have our website display correctly in English, Swedish, and Finnish. The Swedish language works fine, but the Finnish language does not display the menu and widgets correctly. The issue can be seen at hidden link.

Symptoms:
When selecting Finnish, the menu and widgets are not changing, even though they have been created. Instead of the Finnish menu and footer, I see the English menu and footer.

Questions:
Why are the Finnish menu and widgets not displaying correctly?
How can I fix the issue with the Finnish language not showing the correct menu and footer?

January 24, 2025 at 12:49 pm #16631401

michaelS-73

I had a custom code that handled this. Needed to add "fi" to that. Sorry:

if ($_SESSION["Language"] == 'swedish') {
$_SESSION["currency"] = 1;
$language_code = 'se';
$menu_id = 69;
} elseif ($_SESSION["Language"] == 'finnish') {
$_SESSION["currency"] = 3;
$language_code = 'fi';
$menu_id = 80; // Set appropriate Finnish menu id
} else {
$_SESSION["currency"] = 3;
$language_code = 'en';
$menu_id = 35;
}