Skip Navigation

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 3 replies, has 1 voice.

Last updated by Bobby 3 weeks, 2 days ago.

Assisted by: Bobby.

Author Posts
November 21, 2024 at 8:25 pm #16431051

Thomas Maier

Background of the issue:
I want to translate my widgets on my site hidden link. I followed the documentation here https://wpml.org/documentation/getting-started-guide/translating-widgets/ but I am still unable to translate the widgets. With the plugin "WPML widget" I am unable to save the language and every time I refresh the page it’s still "all languages" and not the language which I saved before. The other steps seemed to be super complicated as I don’t want to add code to my WordPress theme. I want to translate the widget "Header - Area One" and the IT text should be "Prenota tavolo".

Symptoms:
I am unable to save the language in the WPML widget, and it defaults to "all languages" after refreshing the page.

Questions:
Can you help me translate my widgets without adding code to my WordPress theme?

November 21, 2024 at 8:27 pm #16431055

Thomas Maier

I updated to the newest version of WPML and still am unable to translate widgets.

November 22, 2024 at 7:46 am #16432020

Bobby
Supporter

Languages: English (English )

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

Hi There,

Please go to Plugins and deactivate WPML Widgets, there is no need to have it activated.

Without the plugin, you can then go to Appearance->Widgets and use the method mentioned here:
https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages

1. Add the widget twice
2. Add the translation in the second widget
3. Set each widget to the specific language

for example, if you have English and Spanish, one widget will be in English and the other Spanish.

November 22, 2024 at 3:23 pm #16434471

Thomas Maier

Hello, it almost works but if i have two widgets (like in the screenshot) i set the language for the first and save and it works. Then if i set the language for the second widget and i save it, it cahnges the first one to display on bouth languages. So somehow i can only set the language for 1 widget. Can i provide you access to my site and you check it?

scren.png
November 22, 2024 at 7:29 pm #16435162

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08: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

December 2, 2024 at 9:49 am #16464951

Thomas Maier

Hello could you find out the problem? Thank you very much.

December 2, 2024 at 6:12 pm #16468016

Bobby
Supporter

Languages: English (English )

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

Thank you for the access details!

When attempting to log in to the backend the page gives me a 404.

Please review the slug and verify that it's correct as the wp-admin is hidden.

December 3, 2024 at 7:23 am #16469614

Thomas Maier

Sorry the login link is hidden link.
Please try with that one and let me know if it worked. Thank you.

December 3, 2024 at 11:13 pm #16473931

Bobby
Supporter

Languages: English (English )

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

Thank you, I was able to login.

Please review the front end now, the widget should show as translated.

To resolve I made a small edit and updated, removed the edit, assigned a language per widget and updated again.

Screen Shot 2024-12-03 at 3.12.04 PM.png
December 4, 2024 at 8:00 am #16474822

Thomas Maier

No it is still not working. Please check the sticky header and the footer. This 3 widgets needs to be translated but once you change it now on the other 2 it will set the first on back to "all languages". It is very weird.

SCR-20241204-ijmc.png
SCR-20241204-ijkr.png
December 5, 2024 at 8:11 am #16479728

Bobby
Supporter

Languages: English (English )

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

Thank you for updating me!

I was able to reproduce the issue, I fixed the sticky header and then it broke the main menu items I had already fixed.

If possible please go to Plugins and install this plugin "Classic Widgets"

Then try the steps again and let me know your results.

I wonder if this behavior is related to the interface because it is a legacy widget.

Let me know your results, please.