Language switcher in another header bar


I would like to integrate the language switch above my main menu. I use the following code for this.

so far it works. But it shows the english language in brackets twice. Regardless of which language is selected.
How can I make it so that only DE EN is displayed?


Screenshot 2021-07-08 152309

Hi Amelie,

Thanks for reaching out.
Sometimes the only screenshots don’t help us to recognize the issue you are having. We need to examine your site to get the cause of the issue.
If login is required to check your website, please provide the credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

Hello Amelie,

We have already replied to another thread that you have opened. Please have a look at this thread.