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 2 voices.

Last updated by Bigul 5 months ago.

Assigned support staff: Bigul.

Author Posts
May 17, 2019 at 5:08 pm #3836169

markoP-7

If we are using Elementor Heading Widget and create URL, we don't see this URL field in WPML translation. Therefore we cannot select different URL for file. It's a bug.
The only way to solve this was to use Elementor Text-Editor widget insted of Elementor Heading widget. Take a look at page hidden link and picture RMB-page-3.jpg and picture RMB-page-3b.jpg for missing link URL for HEading Widget in wpml translation.

May 17, 2019 at 5:33 pm #3836259

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Marko,

Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

I can reproduce the issue on your staging site while following the below steps. Please check the attached images for more details and let me know your feedback. So I can check it with our compatibility team.

1) Create a new Page in the default language
2) Edit with Elementor
3) Add a Heading widget
4) Add the heading caption and URL
5) Update the page
6) Open the page for translation in WPML Translation Editor
7) Only heading caption is showing for the translation

--
Thanks!

Bigul

May 23, 2019 at 2:26 pm #3876709

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Marko,

Thank you for the updates. It is working on the Sandbox test site - hidden link after the following workaround. Please check it and let me know your feedback.

1) Open *functions.php* of the theme for edit
2) Add the following code on the file

add_action( 'wpml_elementor_widgets_to_translate', 'wpml_translate_widget_compsupp_3723' );

function wpml_translate_widget_compsupp_3723($widgets) {
   $widgets['heading'] = [
   'conditions' => ['widgetType' => 'heading'],
   'fields'     => array(
                   'link' => array(
                       'field'       => 'url',
                       'type'        => __( 'Icon: Link URL', 'sitepress' ),
                       'editor_type' => 'LINK'                      
                   ),
                   [ 'field'       => 'title',
		      'type'        => __( 'Heading', 'sitepress' ),
		       'editor_type' => 'LINE'
		    ]                  
               )              
   ];  
   return $widgets;
}

3) Update the file
4) Update the *Test 1 – Heading URL* page after a minor edit to refresh the translation settings(Edit with Elementor)
5) Then *Link URL* field of Heading Widget is showing for translation

Please check the attached images for more details.

--
Thanks!

Bigul