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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 23 replies, has 2 voices.

Last updated by Kor 3 months, 3 weeks ago.

Assisted by: Kor.

Author Posts
July 3, 2024 at 2:15 pm #15885201

lodeD

Background of the issue:
Dear WPML Support Team,

I am writing to seek further assistance with an unresolved issue regarding the translation of links to Elementor landing pages despite following the advice provided. After conducting extensive testing, I've observed that the translated pages properly showcase the links to the landing pages when the "Landing Pages" feature in Elementor > Settings > Features is set to inactive. However, this results in encountering a 404 error, given that these pages are inactive.

Symptoms:

Questions:
My specific query is how we can ensure that the translation of these links is accurate and functional while maintaining the "Landing Pages" feature active within WPML.

Your guidance and support in addressing this matter would be greatly appreciated.

Thank you for your attention to this matter.

July 3, 2024 at 2:58 pm #15885469

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience.

I've converted our chat into a ticket for tracking purposes. As mentioned earlier, I've implemented custom XML configuration to enable translation of static links in your Image Box modules.

Since you prefer using the dynamic link option in the Image Box module (Requires enabling the "Landing Pages" feature in Elementor > Settings > Features), please replicate the issue on this test environment: hidden link . This will allow me to investigate further and determine if achieving this is feasible. If not, I will escalate the issue to our 2nd Tier Support for additional input.

July 3, 2024 at 3:37 pm #15885633

lodeD

Hello Kor, I have created a landing page in English and translated it into Dutch and then added the link from the "English Page" to the English landing page and then updated translation from the "Dutch Page". As you can see on hidden link
the dynamic link is pointing to the English version of the Landing page

July 3, 2024 at 3:59 pm #15885834

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I can translate the "static links" by using the custom XML configuration here hidden link as shown in the attached screenshot.

Could you replicate the "dynamic link" on the test page so that I could check? The one that "Requires enabling the "Landing Pages" feature in Elementor > Settings > Features"

Screenshot_21.png
July 3, 2024 at 6:22 pm #15886432

lodeD

Hello Kor,

we had to install Elementor Pro for the dynamic URL function and the dynamic url is now English Page-edit3. On the Dutch Page, it is still pointing to the Englisch landing page.

Kind regards,

Lode

July 3, 2024 at 6:39 pm #15886478

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for reproducing the issue. I will now escalate this to our second-tier support for further investigation. I'll update you once I receive feedback.

July 6, 2024 at 6:51 am #15902391

lodeD

Any News Kor?

July 6, 2024 at 8:37 am #15902639

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Sorry, no updates yet from our 2nd Tier Support. But I could see some progress on the report and they are working on a workaround for you. I will come back to you once I've feedback.

July 10, 2024 at 9:51 am #15927296

lodeD

Hello Kor,

Any news on this?

Kind regards,

Lode

July 10, 2024 at 4:15 pm #15929151

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience. We haven't received any feedback yet, but our compatibility team is actively addressing the issue.

July 11, 2024 at 5:23 pm #15936844

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

We have a workaround. I've added the PHP code below into your theme's functions.php file and the "internal links" works fine now. hidden link

hidden link

add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {

	$isLottie = \WPML\FP\Relation::propEq( 'widgetType', 'image-box' );

	$lottieLinksLens = \WPML\FP\Obj::lensPath( [ 'settings', '__dynamic__', 'link' ] );

	return array_merge(
		$converters,
		[
			[ $isLottie, $lottieLinksLens, 'internal-url', 'post_id' ],
		]
	);

} );
July 11, 2024 at 6:11 pm #15937002

lodeD

Hello Kor,

when I visit the EN website, I can see that the links are in Dutch now and are pointing to the Dutch Landingpages. See attachment...

Schermafbeelding 2024-07-11 201103.png
July 11, 2024 at 6:18 pm #15937032

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've checked and these links are just static links and not using "Internal URL" . Could you check?

July 12, 2024 at 6:20 am #15940186

lodeD

Hello Kor,

only the first 4 in the left column are static. The rest are internal links.
None of these links, nor static, nor internal are translated. Moreover since the adding of the code, the Dutch text isn't translated into English, but remains in Dutch.

Kind regards,
Lode

July 12, 2024 at 5:12 pm #15943715

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've added some custom XML configuration here hidden link so that you can translate the link labels.

I can see the issue for the "arrow" links as shown here hidden link . Let me check with our 2nd Tier Support

Screenshot_74.png

The topic ‘[Closed] Links pointing to Elementor landing pages are not translated’ is closed to new replies.