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: Compatibility, Documentation request
This topic contains 12 replies, has 2 voices.
Last updated by Mohamed Sayed 1 year, 3 months ago.
Assisted by: Mohamed Sayed.
Author | Posts |
---|---|
October 24, 2023 at 11:09 pm #14651387 | |
jeffreyG-8 |
We use Kadence Blocks on our website - bijak-bestari.com, and on some of the pages, we have Info Box. |
October 25, 2023 at 11:05 am #14660003 | |
Mohamed Sayed |
Hi Jeffrey, Please try the following steps and let me know if that helps: 1. Go to WPML > Settings > Custom XML Configuration tab <wpml-config> <gutenberg-blocks> <gutenberg-block type="kadence/infobox" translate="1"> <xpath>//*</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config> 3. Save it Please check this guide for more details: https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks Kind regards, |
October 27, 2023 at 3:04 am #14674891 | |
jeffreyG-8 |
Going to WPML > Settings > Custom XML Configuration tab and adding the XML code you provided did not help as it didn't seem to be saving. Upon checking the wpml-config.xml in wp-content/plugins/kadence-blocks folder, I noticed there was already a setting for Kadence infobox as follows: //div/a/@href Not sure why this was not working. I edited this file and set it to the one you provided //* This seemed to have resolved the issue. |
October 27, 2023 at 9:50 am #14677175 | |
jeffreyG-8 |
It seems after I made the changes to the wpml-config.xml, the Infobox content is now replicated several times in the Advanced translation editor as can be seen in the attached screenshot. |
October 29, 2023 at 4:12 pm #14687069 | |
Mohamed Sayed |
Sorry for the late reply due to the weekend. Please create a full backup of the database and website then go to WPML > Support > Troubleshooting page, and click the following: - Clear the Cache in WPML Then check if the duplicate segments issue is resolved. |
November 1, 2023 at 1:56 am #14704723 | |
jeffreyG-8 |
Hi I tried what you suggested, and it seemed to clear the issue, however, it has occurred with the contents of the Infobox appearing at least 5 times in the Advanced Translation Editor. Does this mean I have to keep repeating the steps each time we translate content that have infobox? |
November 1, 2023 at 11:39 am #14706845 | |
Mohamed Sayed |
You shouldn't repeat the troubleshooting options each time you translate an infobox. Could you please create a new page with an infobox then check if the issue persists? If yes, may I kindly ask you to replicate this issue on one of our testing servers? I have created this clean sandbox setup on our servers here: I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install the theme/plugin and try to recreate the issue. Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue. If the issue is going to take place on this clean setup on our servers too, then I can forward this to our compatibility department. Please let me know how that goes and what you are able to find. |
November 2, 2023 at 9:13 am #14714101 | |
jeffreyG-8 |
Hi Mohamed Thank you for getting back to me. I tried creating a new page and translated it, but the issue of duplicate info box content still persists. (see screenshot attached) I have also logged in to the sandbox account you provided and set it up with just the necessary plugins (WPML/Kadence Blocks and Theme), and created a test page before translating it. As you will see, although the content of the Infobox has been translated, when viewing the page, it is displaying the orginal language (the title is in translated language, but the content is not) I have not made the changes suggested to the wpml-config.xml in wp-content/plugins/kadence-blocks folder. Perhaps you can make that change and check. Do let me know if you need me to do anything else. Thank you. |
November 5, 2023 at 7:50 am #14732367 | |
Mohamed Sayed |
Sorry for the late reply due to the weekend. I'm consulting our developers about this issue and will update you once I get their reply. Kind regards. |
November 5, 2023 at 11:11 am #14732729 | |
Mohamed Sayed |
Hi, The XML config provided above (https://wpml.org/forums/topic/infobox-translation-not-displaying/#post-14660003) is working on sandbox when I add it to WPML > Settings > Custom XML Configuration tab and the text is translated on front end. Please check this recording: hidden link You can also check the translation here: hidden link I would need to request temporary access (WP-Admin) so I can investigate this issue further. Your next answer will be private, which means only you and I have access to it. ❌ Please backup your database and website before providing us with access details ❌ If you don't see the form below, please don't add your credentials as they will be publicly exposed: Privacy and Security when Providing Debug Information for Support: Thanks for your cooperation |
November 7, 2023 at 10:36 am #14745987 | |
Mohamed Sayed |
Hi, I checked the site and found that the XML config was already added to WPML > Settings > Custom XML Configuration. I just updated the translation with the following steps: - Go to Pages > All Pages I tested the above steps on the Indonesian translation and the issue is resolved as you see in the attached screenshot. Please update the other translation and check if the issue is resolved (For this page, you need only to edit the translation then complete it for the Malay language). |
November 7, 2023 at 11:36 pm #14752181 | |
jeffreyG-8 |
Hi Mohamed Thanks for this. Yes, the Infobox translation works now, but the other issue was that the duplication of Infobox in the advanced translation window as shown in the attached screenshot. Although there is only one Infobox in the page of the original language, when in the advanced translation window, it appears multiple times. Is there a resolution to this please? Thank you. |
November 8, 2023 at 11:49 am #14755945 | |
Mohamed Sayed |
Hi, After performing more tests on the sandbox, I found that the issue is related to the custom XML code used to register this block. When I remove the code from Custom XML Configuration tab, I see the infobox title duplicated twice (Please check the attached screenshot) The issue can be fixed with the following steps: - Go to WPML > Settings > Custom XML Configuration. <wpml-config> <gutenberg-blocks> <gutenberg-block type="kadence/infobox" translate="1"> <xpath>//h2</xpath> <xpath>//p</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config> - Update the original page with a small change I tried the above steps on your site and the issue is resolved (Screenshots are attached), please try it on the other websites and let me know how that goes. I also suggest sharing this issue with the Kadence support team so they can update the wpml-config.xml file with the correct code to register this block. Kind regards, |