Skip Navigation

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

Problem:
The client is trying to translate the text of the Divi Image Hover plugin using WPML but is concerned about entering code in the Custom XML Configuration and potentially breaking their site. They are using a basic child theme and cannot use the Multilingual Tools plugin. The main issue is that the Spanish professions displayed on the images are not translatable into English.
Solution:
We recommend following the steps provided by our colleague in a previous support ticket, which involves adding specific XML code to the WPML → Settings → Custom XML Configuration. You can find the necessary instructions and XML code here: https://wpml.org/forums/topic/the-divi-image-hover-text-is-not-acknowledged-by-your-plugin/#post-13394257. Before implementing this on your live site, please try it on a staging site and ensure you have a backup. Additionally, make a minor edit to the page where the Image Hover element is used and update it to trigger the translation process in WPML's Translation Editor.
Another critical step is to ensure that the WordPress REST API is enabled on your site, as it is necessary for loading strings. You can verify this in WPML → Support. If it's disabled, please contact your hosting provider or developer to enable it. More information on this can be found here: https://wpml.org/documentation/support/rest-api-dependencies/.

If this solution does not resolve your issue or 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 0 replies, has 0 voices.

Last updated by Itamar 3 weeks, 1 day ago.

Assisted by: Itamar.

Author Posts
March 13, 2025 at 5:09 pm #16813110

elisaC-18

Background of the issue:
I am trying to translate the text of the Divi Image Hover plugin on my site hidden link. I found some documentation and support questions related to this issue: https://wpml.org/forums/topic/the-divi-image-hover-text-is-not-acknowledged-by-your-plugin/ and https://wpml.org/documentation/support/language-configuration-files/#page-builder-content. I understand that I need to enter code in the Custom XML Configuration, but I am concerned about breaking my site as happened to another user. I am using a basic child-theme and cannot use the Multilingual Tools plugin.

Symptoms:
The images on the page hidden link have Spanish professions that are not translatable into English.

Questions:
How should I fill in the src__hover in the Custom XML Configuration?
What should I put in "media-url" or "src_hover" specific to my website?
Is it correct that there is nothing to replace in WPML → Settings → Custom XML Configuration?
Do I need to add another custom-type in the XML code for my child-theme?

March 13, 2025 at 5:44 pm #16813205

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Please reply to this ticket if you need further help with this issue. For any other issue with WPML, please open a new ticket in our forum.

Best Regards,
Itamar.

March 14, 2025 at 12:06 pm #16816622

elisaC-18

Hi, I've had no luck with my site. I inserted the code in Custom XML Configuration tab with and without <custom-type> for child theme, but although I find the string is only for backend module and no for the words I need to translate. Still I can't find the way for to translate.

Captura de pantalla 2025-03-14 a la(s) 8.10.45 a.m..png
March 16, 2025 at 4:29 pm #16821974

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

To make things clear, you should see the Divi Image Hover test when you translate the page where you have an Image Hover element. The example you gave was for this page.

hidden link

So after adding the XML code in WPML -> Settings -> Custom XML Configuration, you should make a smal change to the above page. You can add space or a dot. Then you need to press the Update button. This will trigger a change also for the translation and icon will change from the pencil icon to the circled arrow icon. Then clcik to edit the English transaltion and you hsould see the text of the Image Hover in WPML's Translation Editor.

Did you try this?

Another important thing I just notcied is that WordPress REST API is disabled on your site. It should be anabled for strings to be loaded. You should see it is dosabled with you go to WPML -> Support. There look for "REST enabled" and see that it is set to "no". Please read more about this in the following link:

https://wpml.org/documentation/support/rest-api-dependencies/

So please ask from your hosting provider or your develoepr to enable REST API on your site.

Regards,
Itamar.

March 16, 2025 at 8:26 pm #16822362

elisaC-18

Thank you very much! It works now! I think I wasn't enabling the full translation by making any changes to the text. Thanks for pointing that out.
Now, the only problem is that the English translation is displayed in some places with the <p> and </p> tags. How can I hide them?
I hope it's not a complex problem.
Regarding the limitations of the REST API, I've read that WPML can display a false positive and that the check is done by searching the /wp-json/ file. If api-rest is present anywhere in the code, it's enabled, which is the default setting. This way, I think the REST API shouldn't have any problems.

March 17, 2025 at 1:08 pm #16825016

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I can see the problem with the <p> tags when hovering over the images. The problem is shown in some of the images but not in all of them.

If the <p> tag shows on WPML's Translation Editor on the English side, then simply remove it from there. If it does not show, please give me access to your site to check things further.

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

March 18, 2025 at 1:13 pm #16830327

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I solved this problem on your site. I'm not internally sure why the problem happened. But it is solved now. Here is what I did.

1. I 100% completed the English translation, as its status was still in progress.

2. I edited the English version with the Divi editor and re-saved it.

Please see the attached screenshots.

Can you please confirm that the problem is solved now?

Regards,
Itamar.

2025-03-18_15-06-36.jpg
2025-03-18_15-08-13.jpg
March 18, 2025 at 7:39 pm #16832304

elisaC-18

Yes! It's resolved! But what could have happened? Or how did you resolve it? I'll use the plugin on another page as well, and I don't know if it will happen again. Thank you so much for your help.

March 19, 2025 at 9:25 am #16834095

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Step 1, that I mentioned, didn't correct the problem. It was corrected after step 2. I can't know why it happened. However, I suspect it was because the translation process was incorrectly followed. In any case, it is fixed now. Thanks for confirming it.

Take care,
Itamar.