Skip Navigation

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

Problem:
The client is a developer looking to create a custom language selector from scratch and integrate it into their theme using WPML.
Solution:
We recommend reviewing our custom language switcher documentation which provides detailed instructions on how to achieve this. Here are the steps and resources to assist you:

If these resources do not fully address your needs, please do not hesitate to reach out for further assistance.

If this solution doesn't look relevant, please open a new support ticket.

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 5 months ago.

Assisted by: Mihai Apetrei.

Author Posts
November 15, 2023 at 2:57 am #14803663

ivanR-41

Hi I'm a developer creating a site for a client and I need to change the template for the language selector. I've found the custom language switcher section in the plugin settings and I've read the documentation but I'm looking for a way to create a custom language selector from scratch, maybe adding it to my theme. Is there a way to do it?

November 15, 2023 at 7:22 am #14804695

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

To assist you effectively, I recommend checking out our custom language switcher documentation, which is likely to address your specific needs.

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

I understand that you may have already reviewed our documentation, but it's worth noting that we have several pages dedicated to language switcher usage.

Here are some additional resources that might be helpful:

1. Adding Language Switchers Using PHP and Shortcodes:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

This guide explains how to place the language switcher in custom positions on your website

2. Default Language Switcher Documentation:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

This is our standard documentation for using the language switcher.

I believe that you will find the information you need in the first link I provided above. Please feel free to reach out if you have any further questions or need additional assistance.

Kind regards,
Mihai Apetrei