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 5 months, 1 week ago.

Assigned support staff: Marcos Vinicios Barreto.

Author Posts
May 16, 2019 at 2:00 pm #3826601

Natasa

Tell us what you are trying to do?
Is it possible to set language switcher in Avada theme header for mobile only? .... We had it in the menu at the end, I've switched it for now, but I would prefer that the language switcher is in the header (mobile only).

Is there any documentation that you are following?
I know how to put the WPML code in the header, but not device specific

Is there a similar example that we can see?

What is the link to your site?
escape-room.si

May 17, 2019 at 1:45 am #3830143

Marcos Vinicios Barreto
Supporter

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

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

Hello,

Thank you for contacting WPML Support. A possible solution should be using a custom language switcher you could insert in avada theme template files where your mobile menu is displayed, obviously using a child theme approach. Doing so you would make sure your language switcher should be displayed in the same place your mobile menu toggle appear. Still another option should be insert a custom language switcher and then conditionally show it using CSS media queries.

See:
https://wpml.org/wpml-hook/wpml_add_language_selector/
https://codex.wordpress.org/Child_Themes
hidden link

Please, let me know if any additional clarifications are needed. Have a nice day.