Skip Navigation

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

Problem:
The client was unable to update the link targets for two buttons in the top slider element on their multilingual website. While one link could be found and edited in the Advanced Translation Editor (ATE), it did not reflect on the live site.
Additionally, the second link was missing from the ATE and could not be updated.

Solution:
1. We asked the client to clear the website's cache using the "WP-Optimize Premium - Clean, Compress, Cache" plugin and then disable it.
2. We instructed the client to set the German links the same as in the Dutch version, using the Enfold page builder instead of setting them manually.
3. We recommended making minor changes to the default language page and updating it to trigger an update on the translations.
4. We suggested testing in a minimal setup environment with only the theme, WPML plugins, and essential plugins active.
5. We provided a custom XML configuration code to add to the WPML -> Settings -> Custom XML Configuration tab:

<wpml-config>
<shortcodes>
<shortcode>
<tag>av_fullscreen_slide</tag>
<attributes>
<attribute>title</attribute>
<attribute>button_label</attribute>
<attribute type="link" encoding="av_link">link1</attribute><br />        <attribute>button_label2</attribute>
<attribute type="link" encoding="av_link">link2</attribute><br />      </attributes>
</shortcode>
</shortcodes>
</wpml-config>

6. We advised the client to update the page in the default language with minor changes and translate again with automatic translation.

The client confirmed that the issue was resolved after adding the custom XML configuration code.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we 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. If necessary, please open a new support ticket with us.

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 Marsel Nikolli 1 year, 2 months ago.

Assisted by: Marsel Nikolli.

Author Posts
March 18, 2024 at 9:49 am #15419900

Ivan Beemster

We'd like to update the link targets in the two buttons in the top slider element on hidden link. Whereas the original language contains links to two different pages, the href in the DE translation is empty (href="").

I have followed instructions on https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/, and could find one of the two links in the advanced translation editor. However, changing these has no effect on the live site. Notably, the second link (hidden link) is missing from the editor (also when searching for http or other strings from the url).

See attached for the link settings in the Enfold fullscreen slider.

wow-fullscreen-slider.jpg
March 18, 2024 at 10:30 am #15420298

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

I would need temporary access to your website's WP-Admin to investigate this issue and understand it better, please create an administrator user using any email address you prefer.

Please fully back up your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

March 18, 2024 at 2:35 pm #15421680

Marsel Nikolli

Hi,

Thank you for the access, I was able to check further your website.

1) Could you please try clearing the cache of the website (server-side included) and check if the issue persists?

2) Can you tell me how are you adding those text buttons on the slider (you can share a video if that makes it easier, you can use loom.com / monosnap.com and share the link with me)?

Looking forward to your reply.

Thanks,
Marsel

March 18, 2024 at 3:00 pm #15421976

Ivan Beemster

Hi Marsel,

1) I cleaned frontend cache, there is no caching happening on the backend.
2) Sure, see hidden link.

Thanks,
Ivan

March 18, 2024 at 3:38 pm #15422368

Marsel Nikolli

Hi Ivan,

Thank you for the video.
I checked the German version by checking the buttons as shown in the video you shared, they were set to "Set manually" (as you can see in the images attached), different from the English version where the button links are set to "Page".

I added the correct links for both buttons in German (set manually), they should be ok now.

* To change the language of the homepage I used the language switcher on wp-admin top bar.

Let me know if the issue persists on your end.

german-button.png
english-button.png
March 18, 2024 at 3:42 pm #15422417

Ivan Beemster

Hi Marsel, I still see the links on both buttons empty on walkofwisdom.org/de/.

March 18, 2024 at 3:45 pm #15422439

Ivan Beemster

Ah, I walked through the steps you described and was able to change the links using the Enfold page editor. I thought I was to do all translating via the Advanced Translation Editor, as at the same time using the page editor would break the translation or automatic sync, but I might very well be wrong.

March 18, 2024 at 4:16 pm #15422530

Marsel Nikolli

Normally the German links should have been translated the same as the English ones.

Might be the case that the German pages linked to the buttons weren't translated yet when you translated the homepage, and as a result, there were no translations in German to be linked to those buttons.

Strangely, the settings on the links settings page weren't the same for both translations.
Are you translating the pages automatically, or sending them one by one to automatic translation?

* You can find more information on how the translation of the Enfold theme works in this link:
https://wpml.org/documentation/theme-compatibility/enfold/

* Can you please check the German version of the homepage and see what links appear on your end using the Advanced Translation Editor, if there is any related to the buttons please translate it?

March 19, 2024 at 7:46 am #15424260

Ivan Beemster

This page was translation in bulk by automatic translation.

Currently, the link for /inschrijven/ (the button on the right) is still not showing up in the ATE.

wow-2.jpg
March 19, 2024 at 4:14 pm #15427543

Marsel Nikolli

Hi Ivan,

Can you please make a test, try making a small change on the homepage title of the default language (ex. add a "+" sign), and update the page?

After, remove the "+" sign again, update the page, and check if there is any change (normally that should trigger an update on the translations as well).

* Please also refer to the documentation in this link on how the translation of the Enfold theme works in this link:
https://wpml.org/documentation/theme-compatibility/enfold/

Let me know how it goes,
Marsel

March 21, 2024 at 10:29 am #15435458

Ivan Beemster

Hi Marsel, I updated the original page, saved, changed back, saved, and then checked the German translation, specifically for the link "hidden link" behind the second button on the default language, but it doesn't show up in the translation.

Ivan

March 21, 2024 at 12:30 pm #15436276

Marsel Nikolli

Hi Ivan,

Can you please try setting the pages on the German version for the links as they are already set on the Deutch version (please check the attached image to better understand what I am referring to)?

Let me know if the issue persists.

german-links.png
deutch-buttonks.png
March 21, 2024 at 4:15 pm #15437412

Ivan Beemster

Hi Marsel,

Yes, if I set the links directly on the German version in the Enfold editor, it also shows correctly on the frontend. However, when I change the Dutch original, the German translation is overwritten en both links refer to self again.

Ivan

March 22, 2024 at 7:58 pm #15442465

Marsel Nikolli

Hi Ivan,

Thank you for the update.

1) Could you please try clearing any cache using the plugin "WP-Optimize Premium - Clean, Compress, Cache" and disabling the plugin?

After you disable the plugin "WP-Optimize Premium - Clean, Compress, Cache":
1- set the German links the same as they are in Deutch (to pages and not "Set manually")
2- try again making a change to the Deutch version and check if the German version is rewritten again.

2) If that doesn't work out, would it be possible to check if the issue happens in a minimal setup, that meaning:

- keep the theme you have
- keep active only WPML Plugins and must-have plugins
- disable all other plugins

After, check if the issue is still happening.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

* I suggest you try the minimal setup in a staging site to prevent any possible damage to the live website.

Looking forward to your reply,
Marsel

March 25, 2024 at 1:52 pm #15447176

Ivan Beemster

Hi Marsel,

I tested on a staging environment on hidden link. With all but wpml plugins either enabled or disabled, the translated link targets in the DE version are maintained, i.e. not set back to self referring links. Notably, the staging site does not use automatic translation, which might make a big difference?

Also, here the link "hidden link" is missing and keeps missing in the ATE.

Best,
Ivan