[Resolved] Kadence Dynamic Links (in Buttons) are not Translating
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where Kadence Dynamic Links on translated pages were still pointing to the main language version, despite the pages being fully translated using WPML's automatic translation feature.
Solution: We recommended two main adjustments to resolve this issue: In the same WPML -> Language section, under 'Make themes work multilingual', the 'Adjust IDs for multilingual functionality' option was not selected. Selecting this and saving the settings should ensure that dynamic links automatically update to the correct language version.
If these steps do not resolve your issue, or if the solution seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
Background of the issue:
I translated all the pages, product, templates and posts using the automatic translation feature of WPML. The pages make use of the Kadence Dynamic Links in buttons. The issue can be seen on this page: hidden link. I expect the dynamic links to automatically point to the translated page when switching languages.
Symptoms:
The buttons on the translated pages point to the main language even though the page is fully translated.
Questions:
Why are the Kadence Dynamic Links not pointing to the translated page?
How can I ensure that dynamic links automatically update to the correct language version?
In any case, I tried to see the problem on your site but received an internal server error. Please see the attached screenshot. Please correct it and grant me access to your site so I can investigate this issue.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
As I wrote in the other ticket, I can get into your site's admin with the quick access link you provided. Please share the correct access details.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I still suspect that the problem is with the Kadence Blocks plugin. However, I need to investigate this issue further. Like in the other ticket, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.
As in the previous ticket. I understand you, however, the dynamic link works perfectly fine on all the other websites that utilize Kadence Advanced buttons and dynamic links + WPML. In fact, another support team recommended this approach in this ticket to another user: https://wpml.org/forums/topic/kadence-button-link-doesnt-translate-or-show-in-ate/. If it helps, feel free to make a copy to tackle the issues more easily.
Just a kind reminder. Our client is eager to know when this issue will be resolved since the website is set to launch in about two weeks. Do you have any updates for us or is there anything we can do to help? Also, Iām having trouble translating the non-Dynamic links that were added to the advance buttons as they don't appear on the advanced translation columns, see screen recording: hidden link
Since you specified that dynamic links on other sites work fine, I searched for what setting might make them not work on your site. I see two options that are set incorrectly and may be causing the problem.
A. In WPML -> Languages, you selected 'Use directory for default language' and specified an HTML file in /wp-content/themes/bayard-water-experts-theme/wpml-root.php. However, currently the 'A page' option is selected and you have not created any root page. Please see the attached screenshot html-not-page.jpg. This setting was probably set by mistake as it is obvious you intended to use the HTML file. Please switch to the HTML file option and save the settings. Then re-save the permalinks of the site in Settings -> Permalinks. Then update the page's translation. (It is essential to ensure the pencil icon shows. Because if it does not show, then in WPML's Advanced Translation Editor, you will still get the old translation with the problem.)
B. Also in WPML -> Language, check the 'Make themes work multilingual' section. In it you will see that the 'Adjust IDs for multilingual functionality' option is not selected. Please see the attached screenshot, adjust-ids.jpg. Please select it and save the settings.
I believe that changing these two options will correct the problem.
Thanks for your help! It looks like the issue is resolved for now. After heading over to WPML -> Language and turning on the 'Adjust IDs for multilingual functionality,' the links are now pointing to the correct translation.