This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to change the links inside a UAGB container to the correct Spanish links using the WPML editor, but the changes do not persist on the frontend. The links revert to the English version after some time.
Solution:
We recommend adding the following XML configuration to ensure the links inside the UAGB container remain in Spanish:
<wpml-config> <gutenberg-blocks> <gutenberg-block type="uagb/container" translate="1"> <xpath label="Container link" type="link">//a/@href</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config>
Add this XML in WPML -> Settings -> Custom XML Configuration. After adding, follow these steps:
1. Open the English version of the page.
2. Make a minor edit to trigger a translation update.
3. Update the Spanish translation and ensure the links are translated correctly in ATE.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 needed, 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.
Our next available supporter will start replying to tickets in about 2.10 hours from now. Thank you for your understanding.
Tagged: Compatibility
This topic contains 11 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 month, 2 weeks ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
September 13, 2024 at 9:01 am | |
emmanuelT-10 |
Background of the issue: Symptoms: Questions: |
September 13, 2024 at 10:02 am | |
September 13, 2024 at 11:46 am #16175397 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Reference to our recent chat, I'm still looking into the issue. However, I need sometime to properly investigate and come up with a solution. I'll get back to you on Monday. Thank you for your patience and cooperation. Regards. |
September 16, 2024 at 5:13 am #16181212 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I'm wondering that your provided access information has been removed from the ticket. I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, to share this information safely. Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend. IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. |
September 23, 2024 at 4:09 pm | |
September 24, 2024 at 7:13 am #16212626 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access, I am working on this and 'll get back to you as soon as I find something or have a solution. Please note that we don't have any arrangements to communicate on the emails other than on your wpml.org profile, via replying to this ticket. |
September 25, 2024 at 8:06 am #16218729 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've tried all possible things in your staging site and looks like there's a compatibility problem between this UAGB container block and WPML. I'm trying to reproduce the issue in a fresh site so I can escalate accordingly. Please allow me some time and I'll update you accordingly. |
September 26, 2024 at 5:13 am #16223001 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've escalated the matter to our 2nd tier team. I'll get back to you as soon as I have more information. |
September 26, 2024 at 10:42 am #16224582 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I just wanted to update you that our team is looking into the matter, however, in the meanwhile you can fix this by going to WPML > Settings > Translate Link Targets. |
September 30, 2024 at 1:44 pm #16236553 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. Our team investigated and suggested the following XML configuration: <wpml-config> <gutenberg-blocks> <gutenberg-block type="uagb/container" translate="1"> <xpath label="Container link" type="link">//a/@href</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config> I've added this in WPML -> Settings -> Custom XML Configuration in your test site. After that I did the following: - Opened the English (default version) of hidden link. After completing the translation, it is working fine on the frontend now. |
October 2, 2024 at 8:33 am #16244057 | |
emmanuelT-10 |
Thanks, i'll try tomorrow and i'll let you know, Thanks for your help |
October 2, 2024 at 9:08 am #16244315 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Sure, please take your time and let me know, thanks. |
October 4, 2024 at 9:56 am #16253297 | |
emmanuelT-10 |
Hi, I tried to reply on prod. Finally, I could fix it, but I don't know if it will be temporary: |
October 4, 2024 at 11:35 am #16253858 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. That XML fix isn't temporary, you can keep it in WPML -> Settings -> Custom XML configurations and it doesn't affected by any update (i.e. plugin or theme). On the other hand, our team has also published these changes in theme's configuration files, which are automatically downloaded and propagated. So in case if you loose that XML, it still works fine. For the other issue related to markers, I recommend opening a separate ticket/chat because as per forum policy we can only handle one issue per ticket/chat. So you can get more to the point help, without mixing up several issues in one long ticket. Have a great weekend. |