Cet utilisateur n'a pas de sujets favoris.
Démarré par: T4ng en: English Support Une solution rapide est disponible
Problem:
I am trying to translate a page in which there is a YouTube video.
Link to a page where the issue can be seen: Original page: https://tiwal.com/faq/disassemble-tiwal-dinghy/ Translated page: https://tiwal.com/en/faq/disassemble-tiwal-dinghy/ I expected to see: the video, not the YouTube address...
Instead, I got: only the YouTube address instead of the block
Solution:
please go to WPML > Settings > Custom XML configuration and add next code:
<wpml-config> <gutenberg-blocks> <gutenberg-block type="core/embed" translate="1"> <key name="url" type="LINE"></key> <xpath>//figure/div</xpath> </gutenberg-block> <gutenberg-block type="core/video" translate="1"> <key name="id"></key> <xpath>//figure/video</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config>
Make a small change to the default language page and re-translate, save.
Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/
Osama Mersal
Démarré par: T4ng en: Chat Support
Démarré par: T4ng en: English Support
Long Nguyen
Andreas W.
Andreas
Démarré par: T4ng en: Assistance en français
Nicolas V.
T4ng
Alejandro