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 Marcos Vinicios Barreto 12 months ago.

Assigned support staff: Marcos Vinicios Barreto.

Author Posts
July 5, 2019 at 11:48 am #4150997


Hey! I'm developing a site using WPML and I cannot seem to find an option to include a language switcher in the product.

I know I can include the switcher in the nav and footer nav, but I would like it to be on the single product as well - is this possible?

Image attached - I've drawn a flag where i'd like a switcher to be if possible.

July 5, 2019 at 5:28 pm #4153105

Marcos Vinicios Barreto

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Bahia (GMT-03:00)


Thank you for contacting WPML Support. In this case, I would recommend a custom code to display the language switcher in your single product template file. Something like:

1 - Look for the single product template file of your theme and copy it to your child theme in case you are using a child theme (Note: it is always recommended to make any theme code customization using a child theme, doing it this way you avoid loosing your changes in case of theme updates).


2 - Enter a custom code to display a language switcher in your single product template file, you have these options to show the language switcher:

Dropdown list of languages:

do_action( 'wpml_add_language_selector' );

Horizontal list of languages:

do_action( 'wpml_footer_language_selector' );


Please, let me know if it helps, have a nice day.