Skip Navigation

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

Problem:
The client was experiencing an issue where links that were previously translated using WPML and Elementor reverted back to their original language. Despite the XML code being intact, the translated links disappeared.

Solution:
We recommended the following steps:
1. Navigate to WPML -> Settings -> Custom XML Configuration tab.
2. Replace the existing XML with the new provided XML.

<wpml-config>...</wpml-config>

3. Save the changes.
4. Edit the homepage in the original language, make a small change to the content, save the changes, and update the translation.

If the issue persisted, we suggested editing the XML code to change a specific line from:

<field editor_type="LINK">witr_button_link>url</field>

to:

<field editor_type="LINK" key_of="witr_button_link">url</field>

Then, save the changes and update the homepage in the original language and the translation.

If the solution provided here is not relevant due to being outdated or not applicable to your case, we encourage you to open a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact us through the 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 21 replies, has 2 voices.

Last updated by Carlos Rojas 10 months, 2 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
April 2, 2024 at 11:48 am #15472561

theofanisX

Aliright. I am waiting for further update.

Thanks.

April 2, 2024 at 12:11 pm #15472624

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your patience and understanding!

April 2, 2024 at 1:13 pm #15473036

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

Please follow these steps:
- Go to hidden link -> Change from HTTP to HTTPS -> Save the changes
- Edit the homepage in the original language -> Make sure all the links have HTTPS -> Save the changes and update the translation
- Double-check if the issue disappeared.

image.png
April 3, 2024 at 9:29 am #15477029

theofanisX

Hello,

I've followed your steps, but the issue persists unchanged. I won't go through the hassle of editing all the links via Elementor again, as it would be a waste of time. I'm awaiting a definitive solution.

The site has been backed up, feel free to continue with your tests.

Thank you.

April 3, 2024 at 9:42 am #15477143

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your feedback.

I have updated our 2nd tier specialists. I will keep you updated

April 11, 2024 at 8:52 am #15507818

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

Please follow these steps to solve the problem:
- Go to WPML -> Settings -> Custom XML Configuration tab -> Replace the actual XML with this new one:

<wpml-config>
    <elementor-widgets>
        <widget name="witr_swiper_slider">
            <fields-in-item items_of="wittr_slist">
                <field>witr_swiper_title1</field>
                <field>witr_swiper_title2</field>
                <field editor_type="AREA">witr_pragraph</field>
                <field>witr_bg_image>url</field>
                <field>witr_bg_image>alt</field>
                <field>witr_swiper_button</field>
                <field>witr_vshow_button</field>
                <field>witr_video_button</field>
                <field>witr_text_bvi</field>
                <field>witr_posimg_style_mobile</field>
                <field editor_type="LINK">witr_button_link>url</field>
            </fields-in-item>
        </widget>
        <widget name="witr_section_counter">
            <fields>
                <field>witr_icon_item>value</field>
                <field>witr_icon_item>library</field>
                <field>witr_counter_title</field>
                <field editor_type="AREA">witr_counter_content</field>
            </fields>
        </widget>
        <widget name="witr_section_s_image">
            <fields>
                <field>witr_image_image>url</field>
                <field>witr_image_image>alt</field>
            </fields>
        </widget>
        <widget name="witr_section_title">
            <fields>
                <field>witr_top_title</field>
                <field>witr_middle_title</field>
                <field>witr_title_content</field>
                <field>witr_title_button</field>
                <field editor_type="LINK">witr_button_link>url</field>
            </fields>
        </widget>
        <widget name="witr_section_service">
            <fields>
                <field>witr_service_title</field>
                <field>witr_service_sub_title</field>
                <field>witr_service_content</field>
                <field>witr_service_list</field>
                <field>witr_service_button</field>
                <field>witr_service_title2</field>
                <field>witr_service_content2</field>
                <field>witr_service_button2</field>
                <field editor_type="LINK">title_link>url</field>
            </fields>
        </widget>
        <widget name="witr_section_service2">
            <fields>
                <field>witr_style_service</field>
                <field>witr_service2_image>url</field>
                <field>witr_service2_image>alt</field>
                <field>witr_service_title</field>
                <field>witr_service2_title</field>
                <field editor_type="LINK">title_link>url</field>
                <field>witr_service2_content</field>
                <field>witr_service2_list</field>
                <field>witr_service2_button</field>
            </fields>
        </widget>
        <widget name="witr_blog_section">
            <fields>
                <field>witr_blog_button</field>
                <field>witr_pagination_meta</field>
            </fields>
        </widget>
        <widget name="witr_section_t_widget">
            <fields>
                <field>witr_top_text_widget</field>
                <field>witr_middle_text_widget</field>
                <field>witr_text_w_content</field>
                <field>witr_list_text_widget</field>
                <field>witr_title padding2>unit</field>
                <field>witr_title padding2>top</field>
                <field>witr_title padding2>right</field>
                <field>witr_title padding2>bottom</field>
                <field>witr_title padding2>left</field>
                <field>witr_title padding2>isLinked</field>
                <field>witr_primary_color</field>
                <field>witr_contenti_margin>unit</field>
                <field>witr_contenti_margin>top</field>
                <field>witr_contenti_margin>right</field>
                <field>witr_contenti_margin>bottom</field>
                <field>witr_contenti_margin>left</field>
                <field>witr_contenti_margin>isLinked</field>
                <field>__globals__>witr_primary_color</field>
                <field>__globals__>witr_title_color</field>
                <field>witr_title_color</field>
                <field>witr_title_padding>unit</field>
                <field>witr_title_padding>top</field>
                <field>witr_title_padding>right</field>
                <field>witr_title_padding>bottom</field>
                <field>witr_title_padding>left</field>
                <field>witr_title_padding>isLinked</field>
            </fields>
            <fields-in-item items_of="witr_list_text_widget">
                <field>witr_textr_content</field>
                <field>_id</field>
            </fields-in-item>
        </widget>
        <widget name="witr_progress_section">
            <fields>
                <field>witr_progress_title</field>
                <field>witr_skill</field>
                <field>witr_style_progress</field>
            </fields>
        </widget>
        <widget name="witr_section_carousel_image">
            <fields>
                <field>witr_image_list</field>
                <field>witr_slides_to_show</field>
                <field>witr_unicid_c</field>
                <field>witr_c_res1</field>
                <field>witr_c_res2</field>
                <field>witr_c_res3</field>
            </fields>
            <fields-in-item items_of="witr_image_list">
                <field editor_type="LINK">witr_image_carousel>url</field>
                <field>witr_image_carousel>alt</field>
                <field editor_type="LINK">witr_image_link>url</field>
                <field>_id</field>
            </fields-in-item>
        </widget>
        <widget name="witr_section_button">
            <fields>
                <field>witr_btn_button</field>
                <field>witr_banner_button</field>
                <field>witr_banner_buttonb</field>
                <field>witr_icon_item</field>
                <field>witr_icon_item2</field>
                <field>witr_video_button</field>
                <field editor_type="LINK">witr_button_link>url</field>
                <field editor_type="LINK">witr_button_linkb>url</field>
                <field>witr_show_icon2</field>
                <field>witr_slectv_button</field>
                <field editor_type="LINK">witr_yvideo_link>url</field>
                <field>witr_slectv_border</field>
                <field editor_type="LINK">witr_yvideo_linkb>url</field>
            </fields>
        </widget>
        <widget name="witr_section_apartment">
            <fields>
                <field>witr_apartment_title</field>
                <field>witr_apartment_content</field>
                <field>witr_apartment_shortcode</field>
            </fields>
        </widget>
        <widget name="google_maps">
            <fields>
                <field>address</field>
            </fields>
        </widget>
    </elementor-widgets>
</wpml-config>

- Save the changes
- Edit the homepage in the original language -> Make a small change to the content -> Save the changes and update the translation

Could you confirm that the issue was solved?

April 11, 2024 at 9:56 am #15508207

theofanisX

Hi Carlos,

I've followed your instructions, and almost all the translations are complete. The only thing missing is the translation of the three links in the sliders (there is one for each of the 3 sliders).

If you could take a look at those as well, we can finally finish up!

Since there are only these three missing, if you can't find a solution, I could edit them via Elementor. If the translation gets lost at some point, it wouldn't be a big issue to edit those three again.

I await further update.

Thanks.

April 11, 2024 at 10:11 am #15508347

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,
I'm glad that the issue is almost solved 🙂

I asked our 2nd tier specialist to take another look at the XML and check if there is a missing field for translating the slider links.

I will get back to you as soon as possible.

April 12, 2024 at 7:52 am #15511708

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

To solve the problem with the links in the slider, please edit the XML code and change this line:

<field editor_type="LINK">witr_button_link>url</field>

to:

<field editor_type="LINK" key_of="witr_button_link">url</field>

Save the changes and update the homepage in the original language and then update the translation.