Este usuário não tem tópicos favoritos.
Iniciado por: T4ng em: English Support Solução rápida disponível
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
Iniciado por: T4ng em: Chat Support
Iniciado por: T4ng em: English Support
Long Nguyen
Andreas W.
Andreas
Iniciado por: T4ng em: Assistance en français
Nicolas V.
T4ng
Alejandro