Skip Navigation

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.

This topic contains 1 reply, has 0 voices.

Last updated by Martynas.V 1 week, 2 days ago.

Assisted by: Kor.

Author Posts
January 13, 2025 at 1:14 pm #16588502

Martynas.V

Background of the issue:
I am working on a site under development and want to translate the Group element ID (Anchor) in Gutenberg using WPML. I encountered an error when trying to use custom XML: "Element 'gutenberg-block': No matching global declaration available for the validation root."

Symptoms:
I get an error message when trying to use custom XML for translating Gutenberg Group anchors.

Questions:
How can I translate Gutenberg Group element IDs (Anchors) using WPML?
What is causing the error with the custom XML for Gutenberg blocks?

January 14, 2025 at 6:16 am #16591223

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us. You might not have registered the correct custom XML configuration. Please refer to this article https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/ and see if it helps.

January 14, 2025 at 8:29 am #16591586

Martynas.V

So, I missed first part of custom xml and changed section to div. Here is my working code:

//div/@id