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 4 replies, has 2 voices.

Last updated by ivanB-15 1 year, 11 months ago.

Assisted by: Yvette.

Author Posts
May 13, 2022 at 10:05 am #11215369

ivanB-15

Even if I select "Disable browser language redirect", the web page will return to the base language when clicked on any other page.
I tried to clear the cache and checked JS errors, but I can't come up with any solution.

wpml-screenshot-www.amlacademy.eu-2022.05.13-11_44_17.png
wpml-en-screenshot-www.amlacademy.eu-2022.05.13-11_44_55.png
wpml-cz-screenshot-www.amlacademy.eu-2022.05.13-11_45_40.png
May 13, 2022 at 11:39 am #11216273

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

I visited your site. Have you fully translated your menu?

If I visit pages directly,, I can see them with no issues. But I can see that your menu has mixed references to correct language or to original language.

Please make sure that your menus are fully translated and then see if the issue remains.https://wpml.org/documentation/getting-started-guide/translating-menus/

Desktop screenshot (5).png
May 13, 2022 at 3:16 pm #11218395

ivanB-15

That will be it!
I prefer to have menu hardcoded in header.php.
So it's not enabled in WordPress.
Is there any way how to deal with hardcoded menu?
If not, I'll have to enable it.
Thanks you!

header-nav-menu.png
May 16, 2022 at 9:09 am #11227661

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

Please review this API hook:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#hook-602372

In the "hook example usage" that is provided, I believe you will find code that is suitable for your case.
I hope this helps you.

May 16, 2022 at 10:15 am #11228445

ivanB-15

I hope I will be able to manage it now.
Thank you very much !

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.