Skip to content Skip to sidebar

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

Problem:
The client wants to display language switch links as 'DE | EN' in the navigation bar, but currently, they appear as separate links 'English' 'German'. The client is looking for a way to add the language switch as an HTML widget in the navigation bar and to display the links together without too much space in between.
Solution:
To display the language names in the desired format ('DE' instead of 'German', etc.), you should go to WPML > Languages > Edit Languages and rename the languages as needed, then save the changes. To add a vertical line between the language switch links, we recommend checking out the following public tickets for guidance on adding a vertical line to the language switcher separator: here.

If this solution does not apply to your case, or if it seems outdated, 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 you still need assistance, please open a new support ticket here.

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 9 months ago.

Assisted by: Mihai Apetrei.

Author Posts
June 15, 2024 at 10:35 am #15741645

bjornS-6

Background of the issue:
My client would like to have the language switch in the navigation bar as 'DE | EN'. I can imagine that this would be possible if I could add it as an HTML widget. By now, I just manage to have it as 'English' 'German' as usual navigation links. I want them to be shown together as mentioned above without too much space in between. I am looking for a way to have a URL to easily use in a custom link.

Symptoms:
I want to display language switch links 'DE | EN' in the navigation bar but currently can only display them as separate links 'English' 'German'.

Questions:
Is it possible to add the language switch as an HTML widget in the navigation bar?
How can I display the language switch links 'DE | EN' together without too much space in between?
Is there a URL I can use to easily create a custom link for the language switch?

June 15, 2024 at 10:42 am #15741663

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

To change the language name to the format that you mentioned (EN instead of English, for example), you can go to WPML > Languages > Edit Languages > and rename the languages exactly as you want, then save.

In order to add the pipeline/vertical line, please take a look over the recommendations in the following existing public tickets here:
hidden link

I hope that you will find this information helpful. 🙂

Mihai Apetrei