Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The language switcher disappeared from the menu after software updates.
Solution:
If you're experiencing the disappearance of the language switcher from your menu after software updates, we recommend you try the following steps:
1. Disable the theme switcher from theme options.
2. Navigate to Appearance >> Customize >> Header Builder. Here, drag and drop the HTML element after the Main menu.
3. Click on the HTML element and insert the WPML language switcher shortcode as follows:

[wpml_language_selector_widget]

4. Press the Save button, then the Publish button.
5. Go to WPML >> Languages page and enable the Custom Language Switcher option.
6. Click on the Customize button, enable the WPML flags, and press the Save button.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your 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 the problem persists, please open a new support ticket.

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Dimitris 2 weeks, 5 days ago.

Assisted by: Noman.

Author Posts
November 9, 2024 at 2:10 pm #16384498

Dimitris

Background of the issue:
I am trying to make the language switcher appear on the menu. It disappeared after software updates. Link to a page where the issue can be seen: hidden link

Symptoms:
The language switcher disappeared from the menu after software updates.

Questions:
Why did the language switcher disappear after the update?
How can I restore the language switcher to the menu?

November 10, 2024 at 9:35 am #16385267

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Apologies for the delay due to an unusually high workload. Your ticket has now been assigned to me, and I’ll ensure a quicker response time moving forward.

I visited your site and I can see the issue on your site. Please try to follow the below steps and see if this resolves the issue:

1. Please make sure the Menu Language is enabled from WPML >> Languages > Menu Language Switcher section and correct menu position is selected as you can see in the attached screenshot.

2. If the issue persists, please delete the language switcher from WPML >> Languages > Menu Language Switcher section and add it again and see if this resolves the issue.

3. If the above steps don’t help, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

Menu Language swticher.png
November 12, 2024 at 6:53 am #16390975

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing the staging/test site login details. I’m debugging this issue on your site and get back to you with an update soon.

Thank you for your cooperation and patience

November 12, 2024 at 5:11 pm #16393928

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I went to Porto >> Theme Options >> Header >> Language and enable the language switcher option and now the language switcher shows in the site menu as you can see in the attached screenshot.

Here is a porto doc for more details:
hidden link

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

lang switcher.jpg
porto language switcher.jpg
November 12, 2024 at 5:52 pm #16394107

Dimitris

Thank you.
It seems that, after the update, it's the theme that manages the switcher rather than the settings at WPML-->Languages. (See attached image)
These settings for the language switcher seem to be ignored. If so, it seems I don't have the options of removing the text from the switcher (except though CSS, perhaps), or showing the flags in a row rather than a dropdown.
Is that correct?

switcher.jpg
November 13, 2024 at 12:14 pm #16397422

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

It looks like the theme update has shifted control of the language switcher from WPML settings (under WPML > Languages) to the theme itself. This change means the language switcher settings in WPML may no longer be effective with deprecated header.

To address this and improve site stability, I recommend switching to the new header template method. This will prevent issues now and with future updates.

If you prefer to continue using the deprecated header, you can still display the language switcher flags by adding it manually using HTML element. To do this, follow the below steps:
1. Go to the Appearance >> Customize > Header Builder.
2. Drag and Drop the HTML element after the Main menu as you can see in the attached screenshot.
3. Click on the HTML element and insert the WPML language switcher shortcode:

[wpml_language_selector_widget]

4. Press the Save button and then Publish button.
5. Go to the WPML >> Languages page and enable Custom Language Switcher option.
6. Click on the Customize button and set the settings according to your needs.

I hope in this way you should be able to display the language switcher flags in the menu.

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

deprecated.jpg
header builder settings.jpg
switcher frontend.jpg
custom lang switcher.jpg
lang switch settings.jpg
November 13, 2024 at 2:00 pm #16397983

Dimitris

Thank you.
I switched to the new header template method on the live site (avgerisgroup.com). But am still unable to show the flags the way I want.
However, I noticed you where able to do so on the testing site test.avgerisgroup.com, even with the deprecated method (see attached images). The switcher of the theme doesn't appear, but the switcher of WPML does. Which is what I want.
Please tell me how you did that so I can replicate it on the live site.

Screenshot.png
November 13, 2024 at 3:50 pm #16398426

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I’m able to achieve it on your staging/test site by following the below steps:

1. Disabled the theme switcher from theme options.
2. Went to the Appearance >> Customize > Header Builder: hidden link
3. Drag and Drop the HTML element after the Main menu as you can see in the attached screenshot.
4. Clicked on the HTML element and insert the WPML language switcher shortcode as follows:

[wpml_language_selector_widget]

5. Pressed the Save button and then Publish button.
6. Went to the WPML >> Languages page and enabled the Custom Language Switcher option.
7. Clicked on the Customize button and enabled the WPML flags as you can see in the attached screenshot and pressed the Save button. .

Could you please try to follow the same steps on live site and see if this resolves the issue.

Thank you for your cooperation and patience

theme switcher disabled.jpg
header builder settings.jpg
switcher frontend.jpg
custom lang switcher.jpg
lang switch settings.jpg
November 13, 2024 at 4:32 pm #16398658

Dimitris

I fixed it. Thank you! You where very helpful!