Skip Navigation

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

Problem:

[Divi] Button links point to the other second-language pages and products.

Solution:

There is a specific fix for this particular issue described here.

https://wpml.org/forums/topic/translated-button-link-to-english-instead-of-spanish-german-url/page/3/#post-12554581

https://wpml.org/forums/topic/translated-button-link-to-english-instead-of-spanish-german-url/page/3/#post-12562601

Your case may be different. Therefore, if you are not entirely sure you are experiencing the same case, please open a new ticket in our support forum.

In any case, take a backup of your site before implementing this fix.

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 41 replies, has 2 voices.

Last updated by antoniusP-2 1 year, 11 months ago.

Assisted by: Itamar.

Author Posts
November 16, 2022 at 12:18 pm #12472513

antoniusP-2

Dear Support,

The button link for the translations (Spanish and German) go the wrong URL in English, instead of German or Spanish.

How can I edit these with WPML? I enclosed a video:

Example Fishing Page: for Spanish (on each tour are three buttons)

hidden link
2 are = Reservar esta Tour, and
1 in slider = Reservar esta Tour
to fishing product page:

hidden link

Video made with LoomExample:

hidden link

I do not know, how to edit the URL to the correct German en Spanish pages, the translations go to the English pages.

I can edit that with DIVI but should use WPML.

Could you show me example, how to EDIT 1 example, for example for the Ferman Fishing tour page Button, which should Link German Fishing Product page

November 16, 2022 at 6:25 pm #12475963

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Anton.

The links from Divi's buttons should be translated like other links. I'm checking why you can not find the links on your site. I'll get back to you regarding this issue.

Thank you for your patience.
Itamar.

November 16, 2022 at 6:29 pm #12475969

antoniusP-2

Hi Itamar,

That is fine, thank you, I tried all documentation, could not find anything, ... I know I can do it per Spanish and German page in DIVI, but then I mess up the complete WPML is my best quess.

And if I would like in future to use sticky links, the DIVI solution (which is I think is not even allowed by WPML), will not be possible either anymore in that case.

I wait, if I have one clear example, how to change the three button (2 and 1 slider), and I can implement all over the site.

Thanks and enjoy your evening.
Anton

November 16, 2022 at 8:07 pm #12476327

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Anton.

I checked the button link issue on your site. I can see that the links are still not there when searching for them while translating the page with WPML's Advanced Translation Editor. But on the German page, I can see that the links are translated.

I suspect that what is interfering with this issue is caching. You are using the W3 Total Cache plugin. While developing a site, it is highly recommended to deactivate any caching plugins and methods, specifically when working with WPML.

Can you please see if the problem persists when the W3 Total Cache plugin is deactivated?

Please also read our guide on working with the W3 Total Cache plugin.

https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-website-performance-using-w3-total-cache/

You will notice the following message with a yellow background.

Please ensure that you complete your website design and have your website translated to your desired languages before activating and configuring W3 Total Cache.

Thanks,
Itamar.

November 16, 2022 at 8:50 pm #12476633

antoniusP-2

Hi Itamar,

I de-installed W3 Total Cache and purged all caches, guess something went wrong, the site, even the English part is gone.

I might have to put a backup of this morning back, I am afraid, but okay, that would be the same starting session before this issue.

Regards,
Anton

I will do that, as all is 404 now error, not sure why?

Regards,
Anton

November 16, 2022 at 9:07 pm #12476819

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Anton.

I'm sorry for what has happened to your site. As I mentioned developing a website while cache plugins are working is not recommended. It is also very much recommended to develop, make changes, and make updates for plugins and themes on a staging site, not on the live site.

Please, tomorrow, let me know if you need further help.

Regards,
Itamar.

November 16, 2022 at 9:12 pm #12476855

antoniusP-2

Hi Itamar,

The site is lucky not live, I think, as I have a back up of this morning at 10 am, I used the one at 21:30 of tonight now, and I think your work/adaption will still be there.

Then, if case I de-install again the Total W3 Cache, I hope we are at the point of 30 minutes ago. It could be the W3 Total Cache Plugin, we will find out. I will let you know, will test the rest tonight.

Regards,
Anton

November 17, 2022 at 10:16 am #12480431

antoniusP-2

Hi Itamar,

I was able to put a back-up back. The one of yesterday morning, of 10 am. I disable W3 Total Cache Plugin en Jetpack.

Could you have a look at where at the buttons again for the correct button links (translations German and Spanish).

Regards,
Anton

November 17, 2022 at 4:38 pm #12484365

antoniusP-2

Hi Itamar,

As all cache plugins are inactive, that could not be te issue anymore. At this moment, sometimes I see

: they still link to the English
: sometimes, the german goes to the German
: other cases the german goes to spanish

For me, if I have a Loom Video with how to EDIT in WPML a button link and! a button slider (see homepage) link, I can easily do it myself, with the instructions.

Probably is some kind of bug, and still at 2nd tier support.

If you have an update, let me know,

Regards,
Anton

I can not find anything on the forum, youtube video, or documentation from WPML, which explains this. But yesterday before the crash (after I de-installed all cache plugins) for the time being, some links worked, so there is any kind of solution you made I think

November 17, 2022 at 8:51 pm #12485399

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Anton.

I've checked things on your site.

The links on the German page are OK. They are going to the German product. The links on the Spanish page are not OK; they are going to the German product. I checked it by editing the Spanish page with Divi. Please see the attached screenshot.

I want your permission to delete the Spanish page and translate it again. I want to see if this will correct the problem. The translation in Spanish should still be in the Advanced Translation Editor. I also want to ask you to create a new page. When I translate it, I want to see what is happening with a new page.

Do you allow me to delete the Spanish page (hidden link) and translate it again?

Do you also allow me to create a new test page in English and translate it into German and Spanish?

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

P.S. I'll be able to continue to check this issue on Sunday.

Thanks,
Itamar.

2022-11-17_22-34-09.jpg
November 18, 2022 at 9:25 am #12488169

antoniusP-2

I Itamar,

Below is a complete overview of translation problems with buttons and pictures, what i can see in the German and Spanish translations of the pages (which are translated).

The conclusion I make up till now, there is apparently up till now, no way with WPML, picked up the translation, and consequence, for buttons and URLs which are hidden.

We also seem not to be able YET to find these URLs with WPML translation. If we could find them, and show me 1 LOOM Video, I can easily edit these hidden button en links (nor URLs visible on the FRONT side, we can find those already, as you show me with LOOM for product page link = translation or more information link).

At this moment, as I am not a WPML expert, for me this is, and I can not find anywhere a solution also not in the SUPPORT FORUM), and 2-second tier issue, as the Translations, which are made automatic are not consequent, some are okay, and some not.

Caching can not be the issue anymore, all Cache Plugins are Inactivated. I think the solution is to ask 2nd tier support, how to change a button URL, like we could find the visible "more information" URLs. These could be easily changed.

So we are looking into the DARK SPACE here I think, this way.

--

The way to change them in DIVI is for me FINE, I can do that manual for each page, but WPML is not happy with that. But that could be solution.

Another question, where did you find that screenshot you sent, is that in WPML, can you edit that Part?

It can not be difficult, the problem is apparently or

a) something went wrong with the automatic translation
b) I think that is the case, these (at least some have te be EDITED manually)

Regards,
Anton

----------
Noticed problems, summary below: also lots of problems with hidden links in button, pictures in German, only the Navigation part is fine.

German Translation:

Overview:

Menu itself

Is okay, the navigation menu is translated from German to German

About Us Page (=Home Page) = Uber Uns

- Slider Links ( are not translated, and direct to English)
- 3 three triangles at Uber Uns page: ( are not translated, and direct to English)
o Wildtier
o Eco Lodgen
o Schutz der Natur

Dungeltouren Page (4 times picture and Button Link)

Pictures, as well as “Lesen Sie Mere” button ( are not translated, and direct to English)

Rundgang Page (11 times picture and Button Link)

Pictures, as well as “Lesen Sie Mere” button ( are not translated, and direct to English)

Logen Page (2 times picture and Button Link
hidden link
Pictures, as well as “Lesen Sie Mere” button ( are not translated, and direct to English)

One works YES (this is problaby hand made set and changed)
REGENWALD-LODGES | FINCA TAYKU GRUNDSTÜCK | BANANITO LIMON

One works NOT!
DSCHUNGEL-LODGES – CAMPING | FINCA VAN MAARE | BANANITO LIMON

Note about the individual Tourpages, some exampes

Other = Also very Important = Buttons “Buchen Sie Diensen Tour” ( are not translated, and direct to English)

Some Examples: tour pages Dungeltouren Page

hidden link
hidden link
hidden link

Some Examples: tour pages Rundgang Page (most of the times these pages are okay (and translated to German, also the Slider Images) !?!?

hidden link
hidden link
Snorkeling In Costa Rica And Cahuita Park Hike - Best Tours (tourguide-costarica.com) = not working
hidden link
hidden link

BELOW = other do not work either (TWICE)

hidden link (picture and button “Lesen sie Mehr”

BELOW =The two apparently do work (TWICE)

hidden link

BELOW =The two apparently do work (TWICE)

hidden link

Spanish Translation:

They do NOT work at tall, for some reason.

I changed only TWO PAGES = SEE BELOW to test!, hand made in DIVI, which is not the Procedure to check, that works, but I will show you LOOM Video, than you get warning, not this is part oF WPML thanslation, DO NOT TOUCH this. I did that, if WPML has no solution, last night

Example:

LODGES | Tourguide Costa Rica (tourguide-costarica.com)
hidden link

pictures and button”LEER MAS”

November 18, 2022 at 11:19 am #12489547

antoniusP-2

Hi Itamar,

I have a complete back-up of stage, first stage we translated pages made with hosting, after homepage and pages were translated in Spanish and German, is of November
13-11-2022 09:06 backup na 404 page en translation en menu sync Terugzetten
Verwijderen:

and i have back-up of databases:

dbs5864445_2022-11-10.sql.gz 3,7 MB 10-11-2022 21:35 Opslaan en downloaden
dbs5864445_2022-11-11.sql.gz 3,7 MB 11-11-2022 21:36 Opslaan en downloaden
dbs5864445_2022-11-12.sql.gz 3,7 MB 12-11-2022 21:36 Opslaan en downloaden
dbs5864445_2022-11-13.sql.gz 6,5 MB 13-11-2022 21:36 Opslaan en downloaden
dbs5864445_2022-11-14.sql.gz 6,7 MB 14-11-2022 21:36 Opslaan en downloaden
dbs5864445_2022-11-15.sql.gz 6,7 MB 15-11-2022 21:36 Opslaan en downloaden
dbs5864445_2022-11-16.sql.gz 6,9 MB 16-11-2022 21:36 Opslaan en downloaden

You seen that probably, november 12th to 13th filesize goed from 3,7 to 6,5 MB (that will me Implementation of WPML) - but that is only database back-up, i can remember and recall, that after you set-up, finished basics was thursday 10th, and sunday you would be back the 13th after your weekend, than visible url link and the button issue (hidden link questions came up).

I think it is best, after you weekend, we have good contact, as the real issue, is A) i partly resolved, some links works, but some don't (translation and navigation German / Spanish part)
B) hidden links in Button, not the visual one, can not be found.

C) you and I have both tested (1 with the two spanish lodges, you with fishing), that ATE is not functioning anymore in that case.

Could you check with 2nd tier support, as DIVI and WPML should be for these easy things compatible, or we perhaps missed one step:

- after set-up configuration (you helped me with that)
- i translated first homepage
- than translation other pages
- menu sync WPML, i ran (only thing I did) afterward, that worked

then we walked into Navigation Problems with hidden Links in Button and Slider (which sometimes work in German - so you changed something which made it at least partial work for German, but not all button and links, see email before.

Regards, enjoy the weekend I will not touch anything at this moment.

Rgdz,
Anton

than, we found out ab

November 18, 2022 at 1:08 pm #12490589

antoniusP-2

ItamarTours (in Main Menu) !!!

hidden link

two tours
each tour with picture and button, link to:

Itamar Test – Uvita Islands - Tour 1
hidden link

which links to (three buttons – 1 in slider) to: Itamar Product Uvita – test 1

ITAMAR TEST PRODUCT I – UVITA
hidden link

Itamar Test - Beaches - Tour 2
hidden link

which links to (three buttons – 1 in slider) to: Itamar Product Beaches – test 1

ITAMAR TEST PRODUCT 2 – BEACHES
hidden link

November 18, 2022 at 1:15 pm #12490617

antoniusP-2

Itamar,

My best guess, it I cannot explain with saturday12th to 13th database doubled in size, as all pages had been translated,

My best guess Sunday morning, something happened, around before 12:00, I am not sure, but database doubled, translations were already made and finished thursday 10th, so that can not be the cause, that was the time I got the first feedback on the links (from Carlos).

Could it be that something has been duplicated? Could be has nothing to do with this, but it could be from yes, I am not sure.

I made complete test pages called Itamar Test, I put in the main menu.

Rgds,
Anton

November 20, 2022 at 4:09 pm #12499343

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Anton, and thank you for creating the test pages and products for me.

Anton, I'm sorry, but it was hard to follow everything you wrote. Please open new tickets for the other issues that you have. In this ticket, I will help you with the links issue.

I can see the problem with links included in Divi's buttons and images. Indeed, when searching the links in the search field, nothing appears, and it is impossible to translate them. They are also not being automatically translated. I tested the same scenario on my test site with Divi and WPML, but this problem did not occur. We need to investigate this issue further. We need to understand the problem with the links on your site. To continue with the investigation, we need a copy of your site. For this, I created a temporary server on our Cloudways servers where you can migrate your site. In this way, we will be able to investigate the issue without stopping your development work and without causing any harm to your site. In the following private message, I'll share all the details on migrating your site to our Cloudways server. The process is relatively easy.

Regards,
Itamar.