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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 2 replies, has 0 voices.

Last updated by Shekhar Bhandari 1 week, 1 day ago.

Assisted by: Shekhar Bhandari.

Author Posts
January 19, 2025 at 4:11 pm #16610717

agnesP-3

Background of the issue:
I am trying to translate menu links using the WPML plugin in combination with Elementor. The Finnish menu should redirect users to the correct Finnish-language pages, but it is redirecting to Estonian language categories. Link to a page where the issue can be seen: hidden link

Symptoms:
In the Advanced Translation Editor, I am able to translate the text elements of the menu, but there is no option to translate the links within the menu. After manually updating the links directly in Elementor for the Finnish version of the menu, the links reverted the next day and redirected users to the Estonian version of the website instead of the Finnish version.

Questions:
How can I ensure the links stay properly translated and do not revert?

January 20, 2025 at 3:41 am #16611599

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

Thank you for reaching out to WPML support. I’m happy to assist you with this issue.

Could you confirm if the links added to the menu include translations? If translations are available, the menu should automatically display the translated links.

Additionally, please ensure you’re following the steps outlined here to translate menus: https://wpml.org/documentation/getting-started-guide/translating-menus/.

Looking forward to your response.

Best regards,

January 21, 2025 at 4:47 pm #16619991

agnesP-3

The links are on the Estonian page. Could you help me to fix it?

The Elementor icon list element is used.

January 22, 2025 at 5:24 am #16621029

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you provide me more informations about the issue?

Few screenshots will be helpful.

Further, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site.

Look forward to your reply.

Thanks

January 22, 2025 at 8:44 am #16621533

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I added the following xml to your site to register those urls, not they are available for translations. But they are still not automatically translated.

Being so, can you try the solution from this ticket: https://wpml.org/forums/topic/mega-menu-elementor-links-are-not-updating/#post-16529536 and see if it helps.

It looks like you site is cached so any modifications I did to the code wasn't showing so I suggest to clear the cache completely before testing this further.

Look forward to your reply.

Thanks

January 24, 2025 at 7:12 am #16630402

agnesP-3

The link you sent is a private link and I can't open it.

January 24, 2025 at 7:23 am #16630410

agnesP-3

Why aren't the links available for translation in advanced translation manager?

January 24, 2025 at 7:50 am #16630495

agnesP-3

I saw these links in string translation management, translated links, it worked for a while and now links are back in Estonian.

It looks like something is overwriting the translations. Could you look into it?

January 24, 2025 at 7:55 am #16630516

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there

Please check the following steps:

1- Open .../wp-content/plugins/elementor/includes/widgets/icon-list.php.
2- Look for line 758.
3- Replace:

?>
<a <?php $this->print_render_attribute_string( $link_key ); ?>>

With

$wpml_current_lang = apply_filters( 'wpml_current_language', NULL );
$item['link']['url'] = apply_filters('wpml_permalink', $item['link']['url'], $wpml_current_lang, true);
 
$this->add_link_attributes( $link_key, $item['link'] );
?>
<a href="<?php echo $item['link']['url']; ?>">

4- Edit the template in the default language
5- Make a minor edit and update it
6- Update its translation

Let me know if this helps.

Thanks