[Resolved] Translating links in Enfold slider element
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:
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.
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.
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.
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)?
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.
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.
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?
* 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?
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).
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.
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)?
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.
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.
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
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.