Background of the issue:
I am trying to switch language with the header menu switcher on my site hidden link. I am following WPML documentation.
Symptoms:
When I try to switch language with the header menu switcher, I am redirected to the current language. The footer switcher works correctly.
Questions:
Why does the header menu switcher redirect to the current language instead of switching languages?
How can I fix the header menu switcher to work like the footer switcher?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi,
before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
Can you please test this on a staging environment using a default theme, such as TwentyTwenty-One? This way, we can exclude an error in your custom theme.
The footer switcher usually runs WPML unmodified, but theme files are loaded, too, when using the header switcher.