Skip Navigation

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

Problem:
The client needed to add a custom link to the WPML language switcher widget.
Solution:
We advised the client to create a custom language switcher to meet this requirement. We provided step-by-step guidance through our documentation and similar tickets:

We also suggested checking out the following hooks that could be useful while creating a custom language switcher:

If the solution provided here is not relevant to your case, either because it's outdated or it doesn't apply to your situation, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, 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 Bigul 1 year, 3 months ago.

Assisted by: Bigul.

Author Posts
March 1, 2024 at 12:43 am #15360787

fm-mehediH

Hi,
How can I add a custom link to wpml language switcher widget?

scrnli_3_1_2024_8-43-16 AM.png
March 1, 2024 at 12:06 pm #15362750

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

You have to create a custom Language switcher for this requirement. Please refer to the following documentation and similar tickets for more details on how to create a custom language switcher.

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/

https://wpml.org/forums/topic/how-can-i-create-a-custom-language-selector-from-scratch/#post-14804695

Please check it and let us know your feedback. You can also refer to the following hooks. It will be helpful while creating a custom language switcher.

https://wpml.org/wpml-hook/wpml_current_language/.

https://wpml.org/wpml-hook/wpml_active_languages/

https://wpml.org/de/faq/how-to-get-current-language-with-wpml/

--
Thanks!

Bigul