Skip Navigation

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

Problem:
You are trying to ensure that all links on your homepage are available in the WPML Translation Editor and want to deactivate automatic translation to handle translations manually. However, not all links, such as the 'Fragen' button, are showing up in the Translation Editor.
Solution:
To make all links available for translation and manage them manually, follow these steps:
1. Navigate to WPML -> Settings -> Custom XML Configuration.
2. Add the following code to include Elementor widgets like buttons and headings for translation:

<wpml-config>
  <elementor-widgets>
    <widget name="button">
      <fields>
        <field type="Button Text" editor_type="LINE">text</field>
        <field type="Button: Link URL" editor_type="LINE">link>url</field>
        <field type="Button: Custom Attributes" editor_type="LINE">link>custom_attributes</field>
      </fields>
    </widget>
	<widget name="heading">
      <fields>
        <field type="Heading" editor_type="LINE">title</field>
        <field type="Heading: Link URL" editor_type="LINE">link>url</field>
        <field type="Heading: Custom Attributes" editor_type="LINE">link>custom_attributes</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

3. Make a minor change (like adding an empty space) to the original footer or any page you want to translate the link and save it so WPML sees the translation needs an update.
4. Edit the translation, and the links will be available for translation.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we recommend opening a new support ticket at 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 13 replies, has 2 voices.

Last updated by Mateus Getulio 2 months, 1 week ago.

Assisted by: Mateus Getulio.

Author Posts
September 4, 2024 at 12:24 pm

simeaM

Background of the issue:
I am trying to translate my website hidden link using WPML. I want to ensure that all links on my homepage are available in the Translation Editor. Additionally, I prefer to deactivate automatic translation and handle translations manually in the editor because some languages have external links.

Symptoms:
Not all links on my homepage are showing up in the Translation Editor. Specifically, the 'Fragen' button at the bottom of the page does not translate to the Swiss German site.

Questions:
How can I ensure all links on my homepage appear in the Translation Editor?
How can I deactivate automatic translation and use the editor for manual translations?

September 4, 2024 at 1:12 pm
September 4, 2024 at 5:56 pm #16142238

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I checked this out but so far I couldn't find a fix for it.

I asked my colleagues to have a look at this issue in order to see if there's anything I'm missing.

I'll come back here as soon as one of my colleagues reply back to me (which it shouldn't take long).

Thanks,

September 5, 2024 at 1:04 pm #16145177

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I suspect this could be a compatibility or conflict issue. To pinpoint the exact cause, we need to isolate variables by replicating the issue in a sandbox environment.

Sandbox login link: hidden link

Here's what is needed to be done:

1- Install Essential Components Only: In the sandbox login link provided above, please install your theme and only the plugins necessary to replicate the issue. Avoid importing the entire site.

2- Set Up the Page and Configurations: Mirror your current setup that's causing the issue, focusing on this specific issue, we only need the site to be partially replicated up to a point where we can debug the problem. For example, just setting up one button in the footer should suffice.

3- Notify Us Once Done: After replicating the issue in the sandbox, inform us through this ticket so we can proceed with further analysis.

I tried download the theme, child theme and needed plugins from the staging site using file-manager but it failed due to a permission issue.

The goal here is to identify if the problem is indeed a compatibility issue, reproducing it in a controlled environment.

We appreciate your cooperation in this matter. Let us know once you've set up the sandbox.

Best,
Mateus

September 11, 2024 at 11:44 am #16166216

simeaM

Hi

I now integrated everything except the media files and so on.
I tried to look into the error to ensure it still persists but the translation editor does not work anymore.. When I try to assign translations to someone, I get this error:

"Error in the advanced translation editor:

The orders could not be created in the advanced translation editor. Please try again or contact WPML support for help.

Roll back orders...

Stack rolled back"

September 11, 2024 at 6:00 pm #16167808

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for replicating it.

Do you still have access to the sandbox wp-admin dashboard?

It looks like there's a 'coming soon' page enabled that is preventing me from using the login link.

If you still have access and don't need to login, can you please disable the 'coming soon' mode to see if I can access the sandbox.

Thank you,
Mateus

September 12, 2024 at 7:23 am #16169255

simeaM

Hi! Oh no, I am sorry. I now deactivated the Coming Soon overlay.

September 12, 2024 at 8:57 pm #16173532

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

I apologize for the back and forth, I tried logging in but now I'm sent to the home page.

Is it possible that there's a 'hide login' type of plugin in place?

If you try to use the login link in incognito, can you see the wp-admin?

September 13, 2024 at 5:59 am #16173940

simeaM

Hi Mateus
Yes, it works for me. Can you not see the login screen, or can you log in, but then you are getting redirected?
No, we have not installed such a hide plugin.
We have installed a geotargeting plugin. I don't think the login problem has anything to do with it, but I have deactivated it. Just to be sure.

September 13, 2024 at 6:52 pm
September 16, 2024 at 7:49 am
September 16, 2024 at 7:59 pm #16185500

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Upon further review, our 2nd tier team was able to find a solution for the issue.

I already applied it to the staging site and I'm able to see the links available for translation now, please check the screenshot for reference.

To fix it in the live site please follow the steps:

- Go to WPML -> Settings -> Custom XML Configuration
- Add the following code and save it:

<wpml-config>
  <elementor-widgets>
    <widget name="button">
      <fields>
        <field type="Button Text" editor_type="LINE">text</field>
        <field type="Button: Link URL" editor_type="LINE">link>url</field>
        <field type="Button: Custom Attributes" editor_type="LINE">link>custom_attributes</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

- Make a minor change(add an empty space for example) to the original footer or any page you want to translate the link and save it so WPML sees the translation needs an update
- Edit the translation and the links will be there available for translation

Please give it a try and let us know the results.

Best regards,
Mateus

links.jpg
September 17, 2024 at 6:29 am #16186214

simeaM

Hi Mateus

Thank you very much.
I have added it to our real development page. Unfortunately, it does not yet work on every page. For example, on the home page I cannot yet translate the URL of this button (see screenshot).
Besides, it is not only about buttons, but also about other links. For example, on the Join us page, we have set links to the containers.

Kind regards 🙂

screenshot-home.jpeg
September 17, 2024 at 8:56 pm #16190632

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Regarding the link in the home page, I edited it using Elementor and added an empty space to it and saved it. After that, when I edit the translation I can see the URL in there, please check the screenshot. This procedure of updating the main language page/post is only necessary for already existing translations, for new content you'll be translation the fields will be there from the beginning.

Regarding the heading, I registered it for translation with the following XML code:

<widget name="heading">
      <fields>
        <field type="Heading" editor_type="LINE">title</field>
        <field type="Heading: Link URL" editor_type="LINE">link>url</field>
        <field type="Heading: Custom Attributes" editor_type="LINE">link>custom_attributes</field>
      </fields>
    </widget>

After that, I was able to find the URL of the join us page by searching for it in ATE, please check the 2nd screenshot bellow.

There are some elements coming from HTML tags and shortcodes that won't be available within ATE unless searched for to avoid some issues with the translation. This is the case with the heading URL.

If you don't want to search for it within ATE, you can also go to WPML -> String Translation and search for 'link>url', please refer to the 3rd screenshot. Then you'll get to see all the links registered for translation. You can select them in bulk and send them for translation directly from the String translation screen as well.

Regarding the XML code, you can check more about it and how to create it here: https://wpml.org/documentation/support/language-configuration-files/#page-builder-content

string translation screen.jpg
searchurl.jpg
linkinate.jpg
September 18, 2024 at 7:58 am #16191454

simeaM

Hi Mateus

Thank you!

Unfortunately, I cannot open the translation editor on the staging page. I get an error message. I have inserted the code on the correct development page. Unfortunately, it does not work there. I have already created a user on the correct development page. Perhaps you could also insert the code there. I'm probably doing something wrong 🙈
The user and password are the same as on your staging page.

Kind regards 🙂