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

Last updated by Carlos Rojas 1 year, 1 month ago.

Assisted by: Carlos Rojas.

Author Posts
October 10, 2023 at 8:29 am #14547321

Ferran

I have a spanish-english website

i need to add the language switcher to the header menu showing only the first 2 letters with a transparent background and no border drop menu with just an arrow to the right of the 2 letters and no white space on the right of the letters

October 10, 2023 at 9:06 am #14547747

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

In order to achieve this you must split this request into two parts:
1.- How to show only the first two letters: To do this you must go to WPML -> Languages -> Languages -> Edit languages link -> Change the name of the languages from English to EN and so on -> Save the changes
2.- The style of the language switcher: This is considered custom code and falls outside of the scope of our support service, in this guide, you will find an example of how to change the CSS of the language switcher: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

Please let me know if you need further assistance and we will be more than happy to help.

Regards,
Carlos