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.

This topic contains 16 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 5 months ago.

Assisted by: Nicolas V..

Author Posts
July 14, 2023 at 10:30 am #14039247

marie-rosalieH

Hey,

My site here: hidden link
Is mostly translated to Latvian, but the URLs inside divi sections/buttons/etc are still going to the Estonian site. How can I translate that?

July 14, 2023 at 5:00 pm #14040997

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum. Let's start by meeting WPML's minimum requirements because it could impact your translations. I've noticed your website has a low PHP memory allocation (40M). The minimum requirement for WPML is 128M but we recommend 256M:
- Access your server via FTP and open wp-config.php (in your WordPress root directory).
- Insert those lines just before /* That's all, stop editing! Happy blogging. */

/* Memory Limit */
define( 'WP_MEMORY_LIMIT', '256M' );

More info: https://wpml.org/home/minimum-requirements/

---

Now regarding your question: In the Advanced Translation Editor (ATE), by default, links are hidden. You can find them by using the search bar at the top left of the editor. If you search for "http" you will be able to see all outgoing links from that page.
https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

If you can't find them even with the search bar. Please go to "WPML > String Translation" and search the url.

July 18, 2023 at 9:57 am #14057071

marie-rosalieH

Ok.

So I need to edit all the pages one by one and manually search for the right links and find the right translation of that page? There is no automatic way of doing that?

July 18, 2023 at 5:46 pm #14061523

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

If you are using full path links (hidden link) and not relative links (/kontakt/). You can go to "WPML > Settings > Translate Link Targets" and click on "Scan now and adjust links".

Depending on the way those links are inserted (theme builder, module, widget etc...), WPML should be able to translate them.

July 24, 2023 at 1:41 pm #14089909

marie-rosalieH

Ok, I found most of the links, but I have one "group of pages" that I cannot seem to find the links to translate anywhere.

The links are mostly when clicking on images.
The pages that they appear:
hidden link
hidden link
hidden link
... etc ... there's more.

July 24, 2023 at 4:36 pm #14091533

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Looking at the source cod I can see that the link is not inserted in the element but instead in a Javascript that will add a link on elements with CSS classes et_pb_blurb_25, et_pb_blurb_26, et_pb_blurb_27 and et_pb_blurb_28

<script type="text/javascript">
				var et_link_options_data = [{"class":"et_pb_blurb_25","url":"https:\/\/marierosalie.com\/osmolv\/lv\/koka-gridas-un-kapnes\/","target":"_self"},{"class":"et_pb_blurb_26","url":"https:\/\/marierosalie.com\/osmolv\/seinte-ja-lagede-viimistlus\/","target":"_self"},{"class":"et_pb_blurb_27","url":"https:\/\/marierosalie.com\/osmolv\/tootasapindade-viimistlus\/","target":"_self"},{"class":"et_pb_blurb_28","url":"https:\/\/marierosalie.com\/osmolv\/moobli-manguasjade-ja-uste-viimistlus\/","target":"_self"}];
			</script>

You might have to register those Divi modules for translation.
Can you go to "WPML > Settings > Custom XML Configuration" and add the following:

<wpml-config>
  <shortcodes>
    <shortcode>
            <tag>et_pb_blurb</tag>
            <attributes>            
                <attribute type="link">link_option_url</attribute>
                <attribute type="link">url</attribute>
            </attributes>
        </shortcode>
  </shortcodes>
</wpml-config>

- Then edit the page by making a small change (like adding a space at the end of your title) and save it.
- Resave the translation

If the issue persist, I'd like to ask for a temporary admin access (wp-admin and FTP) – preferably to a test site where the issue has been replicated – so I can further investigate.

I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

July 25, 2023 at 8:50 am #14094193

marie-rosalieH

What do you mean "Then edit the page by making a small change (like adding a space at the end of your title) and save it."
Do you mean I need to edit all of the pages that I have links behind images?

July 25, 2023 at 7:52 pm #14098813

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Yes, if the module was not translatable before adding this XML code, then you will need to update the original content (by just adding a space in the title). This will be enough to trigger an "update needed" for your translation and it will take that change into consideration.

Try with only one page first, just to see if it works.

If it doesn't work, I'll need to investigate further. For that please provide me with a temporary admin access (wp-admin and FTP). I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

July 26, 2023 at 8:58 pm #14106879

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Thanks for the access. First, your XML code was correct with

<shortcode>
      <tag>et_pb_icon</tag>
      <attributes>
        <attribute type="link">url</attribute>
      </attributes>
    </shortcode>

I noticed that if I update one of the links(by adding /a at the end), it appears correctly on ATE after searching for "https" (see screenshot).

I think that you need to update the page in order for WPML to take the new translation preferences into consideration. Try to duplicate your original page and translate it to see if links appear this time.

screenshot-2023.07.26-15_52_54.png
July 27, 2023 at 3:01 pm #14111937

marie-rosalieH

I don't understand.

I added the XML for the icon, I updated all the links, I saved the page. Went back to see the translation in ATE searched for "http" - nothing comes up. I went to String translation, searched for the link - it finds only one but it's not the same one.

July 28, 2023 at 4:04 pm #14118821

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

I spent quite some time on your site. I tried to retranslate the links, I tried to register again the icon link, I also change the simple "links" in the icon module for pages links. Those should be automatically translated by the system but nothing happens.

At this stage we need to isolate the issue and see if it's something specific to your site or a compatibility issue. I have created this clean sandbox setup on our servers here:
hidden link (one click login)

- I would need you to set up WPML + the WPML add-ons as you have them on your site (they are already installed together with Divi) and to also install any Divi add-ons necessary to recreate the issue.

Please don't install any other plugins that are not necessary to reproduce the issue.

- If the issue is reproduced on that clean setup, then I can forward this to our compatibility team.

July 31, 2023 at 10:30 am #14126023

marie-rosalieH

Hello,

I am not sure I understand what I need to do.
The pages where the problem accurs with the links I have only used Divi builder (well and WMPL ofc). So what do you need me to do exactly? Just install divi on the sandbox site? Or you need any/all plugins I have used on my site?

July 31, 2023 at 10:47 am #14126197

marie-rosalieH

Is it possible perhaps to have a call with you? I discovered some other problems also. It would be so much easier to go over it in a call.

July 31, 2023 at 3:53 pm #14128659

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Regarding calls, unfortunately we don't offer this kind of support, but we have liveChat support where you can talk to an agent in real time.

However, I think I found the solution here. There is an option in "WPML > Languages" that can force themes to be "multilingual" (Adjust IDs for multilingual functionality). I didn't notice that before because it's normally activated by default.

So now that I changed simple "links" in the icon module for pages links (last intervention) and that I activated this multilingual option (today). Links are correctly translated by WPML!

Could you please confirm the issue is solved? You might have to make a small change in your pages, to switch to page links and to revalidate your translation.

screenshot-2023.07.31-10_51_47.png
August 2, 2023 at 6:50 am #14139173

marie-rosalieH

I changed the icon links like you showed in the screenshot. It's not working. It's not even recognizing the other links behind the module.

Forget about it, with this speed I could've done it all manually already. I will do it manually