Este é o fórum de suporte técnico para o WPML, o plugin para WordPress multilíngue.

Qualquer um pode ler, mas apenas clientes do WPML podem postar aqui. A equipe do WPML responde no fórum 6 dias por semana, 22 horas por dia.

This topic contains 2 respostas, has 2 vozes.

Last updated by eduardoS-12 3 meses atrás.

Assigned support staff: Noman.

Autor Posts
julho 17, 2019 às 9:33 am #4228233



I add a language selector in my menu with this code -> do_action('wpml_add_language_selector');", and I need to customize it to show only - PT | EN - , but I don't know how. Can you help me?

This is the link of the page hidden link

julho 17, 2019 às 10:06 am #4228491


Languages: Inglês (English )

Timezone: Asia/Karachi (GMT+05:00)


Thank you for contacting WPML Support. You can achieve it by doing below steps:

1. Go to WPML >> Languages >> Edit Languages.

2. Add EN / PT in Translation text boxes as in attached screenshot.

3. Then Edit language switcher by pressing the customize button from WPML >> Languages >> Custom language switcher and select similar options as in the attached screenshot.

4. Then you can use small CSS code to display language switcher separator and CSS code will be something like this:

.wpml-ls-item + .wpml-ls-item {
border-left: 1px solid #000;

Please let me know if this resolves your issue or you need further assistance with this issue.

Thank you

julho 17, 2019 às 1:53 pm #4230859


My issue is resolved now. Thank you!