Skip Navigation

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

Problem:
The client installed WPML on their website and encountered issues with widgets not being translated correctly, particularly the text and link of a button within a widget. The widgets were only visible in the theme customizer and not in the legacy WordPress widget area.

Solution:
We noted that the Industrium theme used by the client is not officially compatible with WPML, but the theme's team does mention WPML compatibility. During our investigation, we focused on the 'Contact Us' button string in the footer widget. We located the widget in the 'Customize -> Top Footer bar' and found all possible strings in 'String Translation' and 'Admin screens' (WPML->String Translation->Translate Texts in Admin Screens), but the URL and translation remained in Italian. We advised the client to change the language of any strings picked up in the wrong language by selecting them and clicking on 'change language of selected' strings.

As a test, we installed the Classic Widgets plugin, which allowed us to register the string again in string translation, resulting in the string being correctly translated. We recommended the client to use the Classic Widgets plugin to revert to the classic view of 'Appearance->Widgets' for a more accurate and reliable translation of widgets.
Translating Widgets documentation

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, 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 3 replies, has 2 voices.

Last updated by Bobby 1 year, 4 months ago.

Assisted by: Bobby.

Author Posts
February 13, 2024 at 6:14 pm #15299151

alessandroA-9

Hi,
I installed WPML in this website. It is working except on Widget. The widget are visible only on customize of theme and not visible on legacy of wordpress. I tried with translatin string but the result is part translated but the text of button and the link is not reconigned.
It is same if I use the widget on sidebar right of page news.

Screenshot 2024-02-13 191023.png
February 14, 2024 at 12:49 am #15299982

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

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

February 16, 2024 at 3:45 am #15309893

alessandroA-9

I don't know if you done something but now is working.
Thank you

February 16, 2024 at 6:27 pm #15312885

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi there,

Yes, I will outline some of my findings:

Please note that Industrium theme is not officially compatible theme with WPML (that does not mean it won't work with WPML just that our team has not reviewed it's code), however, their team does mention WPML compatibility.

hidden link

https://wpml.org/theme/

During my tests I focused on the Footer button string Contact Us.

I was able to locate the widget from the Customize -> Top Footer bar, and additionally located all possible strings picked up in String Translation and Admin screen (WPML->String Translation->Translate Texts in Admin Screens) but the URL and Translation remained in Italian.

Important: If any strings are picked up in the wrong language it's important to change them. For example, if the string is Contact Us and it's showing the Italian flag you should select it and then click on the "change language of selected" string.

Finally, as a test, I installed the plugin Classic Widgets and upon activating it I was able to register the string again in string translation and now it seems translated.

If you are open to using the Classic Widgets plugin to switch back to the classic view of Appearance->Widgets you will be able to use the manual way of translating the widgets which can be more accurate and reliable in situations like these

https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages