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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by anthonyR-27 1 week, 1 day ago.

Assisted by: Mihai Apetrei.

Author Posts
November 14, 2024 at 11:48 pm #16405357

anthonyR-27

While you are looking at this, we also need help setting up the language selector button. Right now, when you are in the Spanish page, the button says Español, we need it to say English so that people can just click on it and switch to the English version.

Same when you are on the English version of the website, it should say Español so that people can switch to the language.

The way it is right now, it is confusing.

November 14, 2024 at 11:51 pm #16405361

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Inside WPML > Languages > Menu Language Switcher section > if you click the "edit" pencil icon > you should have the option to hide the current language.

This way, it will only show the other option in each language, exactly as you mentioned that you would like to see it working.

I hope that you will find this information helpful.

Mihai Apetrei

November 20, 2024 at 8:32 pm #16426503

anthonyR-27

Any news on this?

November 20, 2024 at 9:40 pm #16426588

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there and welcome back.

I am not sure if you were able to see my reply above:
https://wpml.org/forums/topic/split-configure-menu-language-switcher/#post-16405361

That should resolve this specific issue with the language switcher.

I will soon get back to you in the other ticket regarding the credits, too.

November 20, 2024 at 10:55 pm #16426700

anthonyR-27

That link opens this same conversation

November 20, 2024 at 11:42 pm #16426787

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

I'm referring to this reply from the screenshot I'm attaching.

This ticket is destined to handle the question of hiding the current language.

Screenshot 2024-11-21 at 01.37.10.png
November 20, 2024 at 11:44 pm #16426802

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

When you have a moment, could you please review this other ticket we have open (https://wpml.org/forums/topic/how-can-we-purchase-translation-credits/) and let me know if I have your approval?

Thank you.

November 21, 2024 at 1:41 am #16427015

anthonyR-27

It doesn't work. This doesn't make sense, it doesn't allow me to turn off the current language. The reader already knows the language they are looking at. What we need is for the menu to display the other language. For example, when you are on the Spanish website, it should ONLY display the word English, to switch to it. And when you are on the English website, the option should only be Español

Screenshot-2024-11-20-at-6.38.07 PM.jpg
November 21, 2024 at 2:02 am #16427049

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

I understand how this might sound confusing, but some people prefer to always have all languages shown up at the top.

However, some (like in our case) prefer to hide the current language.

To do this, you can go to WPML > Languages (hidden link) > find the "Menu language switcher" section > click the "pencil" icon > change the view to "List of languages" instead of the dropdown (because there will be no more dropdown if we will show up only one flag) > and then UNcheck the "Current language" checkbox > then save.

I'm attaching some screenshots, too, as those might help.

This will help you accomplish exactly what you wanted: WPML will always display only the other languages and exclude the current language the user navigates from.

I hope that I was able to explain things a bit better this time.

Screenshot 2024-11-21 at 03.58.18.png
Screenshot 2024-11-21 at 03.56.17.png
November 21, 2024 at 4:25 pm #16430274

anthonyR-27

Thank you very much, this is exactly the way we wanted it.