- Statut
- Résolu
- Extension/thème associé
- Newspaper
- Étiquettes de sujet
- Compatibility
Aperçu de l’anomalie
Lors de l’utilisation du constructeur tagDiv avec le thème Newspaper, il y a un problème avec la traduction de plusieurs widgets, à savoir les titres, les descriptions, les boutons, etc…
Solution de contournement
Ajoutez le code XML suivant dans WPML > Paramètres > Configuration XML personnalisée :
<wpml-config>
<shortcodes>
<shortcode>
<tag>td_block_title</tag>
<attributes>
<attribute>custom_title</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>td_flex_block_3</tag>
<attributes>
<attribute>custom_title</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>td_block_text_with_title</tag>
</shortcode>
<shortcode>
<tag>tdm_block_button</tag>
<attributes>
<attribute>button_text</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>vc_single_image</tag>
<attributes>
<attribute>image</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>tdm_block_icon_box</tag>
<attributes>
<attribute>button_text</attribute>
<attribute encoding="base64">title_text</attribute>
<attribute encoding="base64">description</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>tdm_block_image_info_box</tag>
<attributes>
<attribute>button_text</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>td_flex_block_1</tag>
<attributes>
<attribute>custom_title</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>tdm_block_image_info_box</tag>
<attributes>
<attribute>box_title</attribute>
<attribute>button_text</attribute>
<attribute encoding="base64">box_description</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>
Appliquez ensuite une petite modification à l’article pour que ces nouveaux champs se chargent dans l’Éditeur de traduction.