Skip Navigation

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

Problem:
The client is working on customizing the language switcher on their WordPress site using WPML. They want to include an image and the word 'Language' before the switcher, but the current implementation lacks these elements.
Solution:
We recommend creating a custom language switcher via code to include an image and the word 'Language' as desired. You can start by following our guide on how to create a custom language switcher. Here is the link to the guide: Custom Language Switcher Guide.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if further assistance is needed. You can do so 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.

This topic contains 1 reply, has 2 voices.

Last updated by Carlos Rojas 1 year, 1 month ago.

Assisted by: Carlos Rojas.

Author Posts
May 24, 2024 at 9:19 am #15666501

亮治 谷山

Background of the issue:
I am working on customizing the language switcher on my WordPress site using WPML. I want to include an image and the word 'Language' before the switcher. I have provided the current implementation and a planned design for how I want it to appear.

Symptoms:
Currently, the language switcher is implemented without the desired image and prefix word 'Language'.

Questions:
How can I modify the existing WPML language switcher to include an image and the word 'Language' before the switcher as shown in my planned design?
Are there specific modifications or additional code required to achieve the customization as per the provided design?

May 24, 2024 at 9:41 am #15666727

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hello,
Thank you for contacting us

In this case, you will need to create a custom language switcher via code to achieve this style. I recommend you to start by reading this guide: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/

Regards,
Carlos