Skip Navigation

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

Problem:
The client wants to set up different social media platforms for different languages using WPML in widgets. The standard WordPress widget does not show the option 'Display on language', which is available with WPResidence theme widgets.
Solution:
We recommend creating a different widget for each language or using WPML String Translation to replace the URL. For more information, please refer to this guide: Translating Widgets.
Additionally, you can install and activate the Classic widgets plugin. After activation, go to Appearance->Widgets, set the default widget to English, and then add it again for each language, setting each widget to a specific language.

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 issues persist, 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.

This topic contains 8 replies, has 3 voices.

Last updated by Bobby 11 months, 2 weeks ago.

Assisted by: Bobby.

Author Posts
July 25, 2024 at 2:39 pm #16004189

abhT

Background of the issue:
I want to use different social media platforms specifically for the Russian language, different from those I use for English in widget. For example, I am working on the site hidden link.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I set up different social media platforms for different languages using WPML?

July 25, 2024 at 3:56 pm #16004642

Marcel
Supporter

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

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

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Yes, that is possible. You can either create a different widget for each language or use WPML String Translation to replace the URL. For more information, please refer to this guide: Translating Widgets.

Best regards,
Marcel

July 25, 2024 at 6:46 pm #16005162

abhT

It only shows CSS classes. What should I do?

Screenshot 2024-07-25 214305.png
July 25, 2024 at 7:08 pm #16005239

abhT

I have found the solution, thanks

July 25, 2024 at 7:51 pm #16005395

abhT

I'm having an issue where, after selecting a language from the display options and saving, the change doesn’t take effect. Instead, it defaults to all languages being saved. Could you advise me please?

Screenshot 2024-07-25 224827.png
July 25, 2024 at 11:21 pm #16005796

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Is this happening with all your widgets or just this specific one?

For example, if you add a standard WP widget, what are your results?

July 26, 2024 at 1:00 pm #16008800

abhT

When I try to add a standard WordPress widget, the option'' Display on language'' does not appear. It only appears with WPResidence theme widgets.

Screenshot 2024-07-26 155920.png
July 26, 2024 at 10:41 pm #16009923

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the screenshot! I believe you have to add a title and then it will display.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

July 29, 2024 at 7:30 pm #16017799

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Please go to Plugins->Add new-> Classic widgets, install and activate.

Once that is done go back to Appearance->Widgets and you should now be able to set the default widget to English, then add it again for the rest of the language and set each widget to a language.

I have added one for French with the YT link so you can see the setup.

Let me know your results, please.