Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is developing a new version of their website using the Impreza theme and needs help integrating the WPML language switcher into the header, instead of its current position at the bottom of the pages.
Solution:
We advised the client to use either PHP or shortcodes to add the language switcher to the header template. Detailed instructions on how to implement this can be found in our documentation on adding language switchers using PHP and shortcodes. Additionally, the client can add a language switcher to the menu by navigating to WPML > Languages > Menu Language switcher section and creating a new language switcher.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Mihai Apetrei 8 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
August 19, 2024 at 7:32 pm #16085085

trymB

Background of the issue:
I am developing a new version of my website using the live builder of the Impreza theme, which is certified to work with WPML. The site is currently at hidden link and will eventually move to lacanela.com.

Symptoms:
I cannot find a way to add the language switcher to my header. The language switcher is currently at the bottom of pages (below the footer), which I don't like.

Questions:
How can I add the language switcher to my header using the Impreza theme?
How can I remove the language switcher from the bottom of the pages?
How can I change the format of the language switcher to show 'es' and 'en' without flags?
Will changing the domain name to lacanela.com affect my WPML account settings?

August 20, 2024 at 10:02 am #16086396

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Per our Support Policy, we can handle only one issue per ticket.

Continuing with one issue per ticket helps not only supporters to focus on one issue at once, but also enables other users to find solutions to their questions faster.

So we will handle the "how to add the language switcher" request and then I will create new tickets for each of the other questions and you will be notified via email when there's an answer in each of those tickets.

To display the language switcher inside a header template, you can use PHP or even better, shortcodes:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

You can also add a language switcher to the menu by going to WPML > Languages > Menu Language switcher section > and create a new language switcher.

I hope that you will find this information helpful.

Please let me know how things go - I will be waiting for your response.

Mihai Apetrei

August 20, 2024 at 1:15 pm #16087362
trymB

Thanks for your reply which resolved the issue.
I have not received any emails confirming the creation of separate tickets for the other pending questions.

August 20, 2024 at 7:16 pm #16088142

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Thank you for the update.

I am happy to hear that things worked fine.

You will receive emails soon with updates from each of the tickets that I created for you.

Can you also please mark this current ticket as resolved?

Thank you for your understanding and cooperation!

Mihai

August 20, 2024 at 7:31 pm #16088161

trymB

Thanks for all your help. I think I have closed all tickets. If not, you close them for me.
Cheers & have a good night.