Skip Navigation

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

Problem:
You are trying to translate the header mega menu items in your Elementor-based site, specifically the Icon list items that contain both dynamic and static data. However, you are unable to get WPML to register the links in these Icon list items for translation.
Solution:
We recommend checking the WPML-> Settings-> Custom XML tab for any existing configurations that might be affecting the translation of these elements. In your case, the following XML configuration was found:

<wpml-config><br />  <elementor-widgets><br />    <widget name="icon_list"><br />      <fields><br />        <field type="link" editor_type="LINK">link>url</field><br />      </fields><br />    </widget><br />    <widget name="icon-list"><br />      <fields><br />        <field>icon_list</field><br />      </fields><br />      <fields-in-item items_of="icon_list"><br />        <field>text</field><br />        <field type="Dynamic: Field link" editor_type="LINE" key_of="__dynamic__">link</field><br />      </fields-in-item><br />    </widget><br />  </elementor-widgets><br /></wpml-config>

Removing this code should allow the URLs to appear correctly in the translation editor. If this solution does not resolve your issue or seems outdated, 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 further assistance is needed, 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 2 replies, has 0 voices.

Last updated by Osama Mersal 3 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
February 12, 2025 at 9:51 am #16695033

kristijanV-4

Background of the issue:
I am trying to translate the header mega menu items on my site hidden link. The dropdown contains Icon list items from Elementor with some dynamic and some static data.

Symptoms:
I cannot get WPML to register the links in the Icon list items so I can translate them.

Questions:
Can you help me translate the header mega menu items with WPML?

February 12, 2025 at 11:48 am #16696180

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Would you please elaborate more on the issue to help me understand it better?

It would be very helpful if you could share screenshots or a screen-recorded video while reproducing the issue.

Best regards,
Osama

February 12, 2025 at 2:03 pm #16697113

kristijanV-4

Hey, yes no worryes. I have screencaptured the sending to wetransfer:
hidden link

So what is happening is that we are trying to translate the mega menu dropdowns. In the mega menu there are Elementor Icon list items that have dynamic and some static urls. But in the advance translator there are not there. Ive tryed some XML snippets but it does not fix the problem. So im reaching out.

February 12, 2025 at 2:11 pm #16697136

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the video. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

February 17, 2025 at 10:10 am #16712974

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. I updated the "hidden link">Mm: Za ženske" template. After that, I opened the translation editor to update the translation and found that the URLs were not translated there. (Kindly check the attached screenshot)

Please translate them and check if the URLs are translated correctly on the front end.

Best regards,
Osama

2025-02-17_12-07-36.png
February 17, 2025 at 1:30 pm #16714500

kristijanV-4

No. It is not translating. On the main site Ive delete the translated site and created a fresh one. Now it does not show any urls. Please see the other tamplates with the Mm: mark. The url-s does not show.

February 17, 2025 at 1:47 pm #16714751

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) I checked the "Mm: Oddelki" template where you used the "Internal URL" option, and these URLs are translated correctly on the front end. (Kindly check this hidden link">screenshot)

2) On the other hand, in the "Mm: Za ženske" template, where you insert the URLs manually, you can see the URLs in the translation editor. (Kindly check this hidden link">screenshot)

Best regards,
Osama

February 17, 2025 at 2:49 pm #16715124

kristijanV-4

Im sending you the screenshots from the live site. Im looking at the same thing and I dont have any URL's. I see the icons in the string translator but it shows a shortcode not a url. On the "Mm: Ženske" where the urls show im translating the url but they are not showing on the front end. Nor does changing the title or any changes... Ive tryed to delete the .sk template and then re-translate it but it is the same (the new translation does not have any urls). Im seeing that the strings where translated in the string translator, Is it possible that that is the issue?

FireShot Capture 225 - Advanced Translation Editor - WPML - [e.ate.wpml.org].png
FireShot Capture 224 - String Translation ‹ Zanimiva darila Luniks — WordPress - [luniks.sk].png
FireShot Capture 221 - Advanced Translation Editor - WPML - [e.ate.wpml.org].png
FireShot Capture 219 - Advanced Translation Editor - WPML - [e.ate.wpml.org].png
February 17, 2025 at 3:08 pm #16715265

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) Thanks for your reply. It might be because of the string translation translation. Please delete them for one template and translate it to check if it will work correctly.

2) If that didn't help, please push the live site to the staging site to check the issue further.

Best regards,
Osama

February 26, 2025 at 11:08 am #16750620

kristijanV-4

Hey, Ive deleted and some of the urls are working correctly but not all. I still need to translate some of them. And again there is no URL in the advance translator of the tamplate.

February 26, 2025 at 11:11 am #16750628

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please push the live site to the staging site and share an example of the problematic URLs to check them.

Thanks,
Osama

February 26, 2025 at 12:11 pm #16750859

kristijanV-4

The site is updated.

For example the first one "Men" section. Ive deleted and re-translated it so its a fresh link. You can see that in .sk there are some linked to .sk and others to .si

I have truble to re-link the .si ones. They dont show up not in the advance not in the string translator.

+ Can you tell me why the url-s in the string translator show up as a shortcode? For example:
[elementor-tag id="31555a9" name="internal-url" settings="%7B%22type%22%3A%22taxonomy%22%2C%22taxonomy_id%22%3A%22383%22%7D"]

February 26, 2025 at 12:26 pm #16750942

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for updating the staging site. I found the following code in WPML-> Settings-> Custom XML tab.

<wpml-config>
  <elementor-widgets>
    <widget name="icon_list">
      <fields>
        <field type="link" editor_type="LINK">link>url</field>
      </fields>
    </widget>
    <widget name="icon-list">
      <fields>
        <field>icon_list</field>
      </fields>
      <fields-in-item items_of="icon_list">
        <field>text</field>
        <field type="Dynamic: Field link" editor_type="LINE" key_of="__dynamic__">link</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

When this code was removed, the URLs appeared correctly in the editor. (Kindly check the attached screenshot)

Best regards,
Osama

2025-02-26_14-24-27.png