Skip Navigation

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

Problem:
You are trying to add a Facebook icon with a link into the WPML language switcher on your site.
Solution:
Unfortunately, it is not possible to add an extra icon or link directly in the WPML built-in language switcher. However, you can achieve this by building a custom language switcher using some custom code. We recommend using the

wpml_active_languages

hook and customizing it according to your needs. For more details, you can visit https://wpml.org/wpml-hook/wpml_active_languages/.
Please note that this involves custom coding, which is outside the scope of our standard support. While we can provide guidance, we cannot create code for you.

If this solution does not apply to your case, or if it seems outdated, 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. If further assistance is needed, please 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 1 reply, has 2 voices.

Last updated by Noman 2 weeks ago.

Assisted by: Noman.

Author Posts
October 24, 2024 at 3:48 am #16324106

kelvinw-4

Background of the issue:
I am trying to add a Facebook icon with a link into the language switcher on my site hidden link.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I add a Facebook icon with a link into the language switcher?

October 24, 2024 at 7:22 am #16324526

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. Sorry, it’s not possible to add extra icon/link in WPML built-in language switcher. To achieve it, you may build a custom language switcher through some custom code with the help of wpml_active_languages hook and customize it according to your needs. You can see more details here: https://wpml.org/wpml-hook/wpml_active_languages/

This is considered custom coding so it's outside the scope of our support. this doesn't mean we won't be able to help you but we can't create code for you and we're restricted on how we can help you regarding this.

Please let me know if this resolves the issue or if you need further assistance with this issue.
Thank you

October 27, 2024 at 5:05 pm #16335056

kelvinw-4

Really Thanks for help. I have discussed with users that will be change to another presentation. Thanks

kelvinw-4 confirmed that the issue was resolved on 2024-10-27 17:05:38.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.