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 3 replies, has 3 voices.

Last updated by Andrés 12 months ago.

Assigned support staff: Andrés.

Author Posts
October 4, 2018 at 11:54 am #2787403

dungD

How can i place switcher on header but outside of header menu

hidden link

hidden link

October 5, 2018 at 11:47 am #2790588

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. We can achieve it by adding some CSS code OR by adding extra div in header for mobile switcher. Could you please provide me page URL where I can see this issue and will try to provide you css to fix this issue.

Thank you

October 13, 2018 at 5:57 am #2813898

dungD

Dear Noman,

Sorry for delay reply.
My url is: hidden link

October 15, 2018 at 7:40 am #2816426

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

As Noman is not available, I would like to continue with your case.

I'm afraid that what you want is not achievable just with some CSS, you also need to modify your theme a big.

The idea is the following:
- Find the PHP file responsible of the sport where you want to display your language switcher. For this you can inspect your theme or contact your theme support.
- Once you have identify the file, add this code:

do_action('wpml_add_language_selector');

- Finally, add some CSS or go to WPML > Langauges > Custom language switcher, to make it looks l like you need.

You can find more information about it here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

Regards,
Andrés