This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to format the language switcher in their website header to display languages with a '/' between them, specifically as 'EN/GR'.
Solution:
If you're experiencing this, we recommend you follow these steps:
1. Enable the language switcher.
2. Configure it to show only language codes by following the instructions here: https://wpml.org/forums/topic/use-language-abbreviations-in-menu-language-switcher/
3. Use custom CSS to add '/' between the languages. Here is an example of how you can do it:
.wpml-ls li.wpml-ls-item a:after { content: "/"; margin-left: 13px; } .wpml-ls li:last-child.wpml-ls-item a:after { content: ""; }
This solution might be irrelevant if it's outdated or not applicable to your case. 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 this does not resolve your issue, please open a new support ticket at WPML support forum.
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 1 reply, has 0 voices.
Last updated by 1 week ago.
Assisted by: Shekhar Bhandari.