[Resolved] Caption of block "Image (Adv)" in Kadence theme not translated
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with translating image captions in the Kadence theme using WPML. The captions do not appear in the WPML translation editor, and there are issues with the Media Translation feature getting stuck. Solution: First, ensure that the option to translate Media Library texts (alt, caption, title) is enabled in WPML > Settings > Media translation. If translating image title/alt added via the Image ADV block in Kadence, add the following XML configuration in WPML > Settings > Custom XML configuration:
After adding the XML, re-save the original page and make a small content change if needed, then update/reopen the translation. This should allow the figcaption to appear correctly inside the Translation Editor as it does on the sandbox site.
If this solution does not resolve your issue or seems outdated, we 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 problems persist, please open a new support ticket at WPML support forum.
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.
thanks, I took some time and checked and installed all the required things and reporduced the issue.
So, there are 2 things if you are adding image text from WP / Media library and wish to translate them via WPML editor, you need to enable this from WPML > Settings > Media translation > Translate Media Library texts (alt, caption, title) when translating content.
If you wish to translate image title / alt added via Image ADV block, then you need to add next code to WPML > Settings > Custom XML configuration
thanks, I took some time and checked and installed all the required things and reporduced the issue.
So, there are 2 things if you are adding image text from WP / Media library and wish to translate them via WPML editor, you need to enable this from WPML > Settings > Media translation > Translate Media Library texts (alt, caption, title) when translating content.
If you wish to translate image title / alt added via Image ADV block, then you need to add next code to WPML > Settings > Custom XML configuration
//img/@alt
//img/@title
Make a small change to default language page, save and translate and it should be fine.
Please check, and test if you wish on sandbox website and let me know if you need any further help.
1) WPML > Settings > Media translation > Translate Media Library texts (alt, caption, title) when translating content.
=> This option has already been enabled:
"Automatically detect best options for translating image texts (alt, caption, title)
avoids unnecessary duplicate media fields and missing image translations"
2) I tried adding to the "Custom XML Configuration" the following rows:
//img/@alt
//img/@title
Then I get the following error message:
Line: 1, Column: 1 Start tag expected, '<' not found
So, I tried the following code, which does not lead to an error message:
Please skip my last two message of May 10, 2026 at 5:36 pm and May 10, 2026 at 5:41 pm: I only saw the e-mail without the screenshot and without XML code components.
Now I was able to adapt the settings according to your screenshot. Furthermore, I placed the XML code <wpml-config>... at the "Custom XML Configuration". But this does still not resolve the problem:
Now WPML translates the file names of the graphics and photos, but still not their captions.
Can you please first check on sandbox test site and let me know if it works fine there? If not, please try to reproduce the issue and share steps with me.
If it works on sandbox, then we just need to apply same settings / steps to your website.
it is already prepared, same one where I ahve tested, you just need to check my test page and if it works there and if not adjust text block how you are using it so I can see the issue.