Skip Navigation

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

Problem:
The client was experiencing an issue where the Language Switcher did not display the English flag on the French site and showed no flags on the English site. The hreflang attribute was missing for English from both pages, even though the pages were translated.
Solution:
We recommended the following steps:
1. Verify that the two pages are connected by checking in the default language view. The client should edit the page and ensure that the translation shows a "pencil" icon. Then, use the language switcher at the top (making sure to exit the Gutenberg fullscreen if necessary) to switch to the translated version and check if it displays correctly.
2. We suggested adding a footer language switcher via WPML->Languages and checking if the same issue occurs with the footer language switcher, ensuring it is set as a list and not a dropdown.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant 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 at WPML 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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by lamineD 1 year, 1 month ago.

Assisted by: Bobby.

Author Posts
May 9, 2024 at 5:40 pm #15611812

lamineD

Tell us what you are trying to do?

Use Language Switcher

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

hidden link
hidden link

I translate the page but:

In FR site Language Switcher doesn't present EN flag to switch
IN EN site Language Switcher doesn't show any flag: hidden link

Please advise

May 9, 2024 at 6:08 pm #15612024

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the screenshots!

I was able to reproduce this behavior on your site's front end.

When I review the source I can see that the hreflang is missing for EN from both pages even though the page is translated.

If possible please try the following:

1. Go to pages and verify that the 2 pages are connected.

-> you can do this by viewing the page in the default language -> edit and verify that the translation is showing a "pencil" icon. Then at the top click on the language switcher (if it does not show exit the guttenberg fullscreen) and switch to the translated version.

Does it show up ok?

2. Go to WPML->Languages-> add a footer language switcher, is the same problem happening with the footer language switcher? (make sure it is a list and not a dropdown)

May 9, 2024 at 6:41 pm #15612099

lamineD

Hi Bobby,

Pencil is present on both:
FR: hidden link
EN: hidden link

Switcher doesn't works on footer EN in FAQ page: hidden link

Please advise

Regards

May 10, 2024 at 6:56 pm #15616233

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for sharing the screenshots!

What are your results if you go to WPML->Languages and edit the language switcher -> change it from a drop-down to a list?

Does it work ok as a list?

May 10, 2024 at 7:23 pm #15616242

lamineD

I don't understand what your are asking.

Be awaren that switcher is working in all pages except this one.

here my settings: hidden link

what do you want to try?

Regards

May 11, 2024 at 12:00 pm #15616966

lamineD

Hi,

I don't know what's happened but now it works!

I close the ticket

Thanks

Regards