問題の概要
WPMLでUltimate Addons for WPBakeryを使用すると、以下の問題が発生する場合があります。翻訳されたページでアドオンのボタンやボックスのリンクがデフォルト言語のページを開いてしまうことや、一部のテキスト(Video BannerテキストとTimeline Read Moreテキスト)がデフォルト言語のままになることです。
回避策
WPML設定に移動し、以下をカスタム XML 設定に追加します。
XML
<wpml-config>
<shortcodes>
<shortcode>
<tag>bsf-info-box</tag>
<attributes>
<attribute>title</attribute>
<attribute>read_text</attribute>
<attribute type="link" encoding="vc_link">link</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>ultimate_video_banner</tag>
<attributes>
<attribute>video_banner_title</attribute>
<attribute>video_banner_content</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>icon_timeline_item</tag>
<attributes>
<attribute>time_title</attribute>
<attribute>time_read_text</attribute>
<attribute type="link" encoding="vc_link">time_link</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>ult_content_box</tag>
<attributes>
<attribute type="link" encoding="vc_link">link</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>その後、ページを再度翻訳します。アドオンの他のリンク属性についても、同じtype="link" encoding="vc_link"形式を使用します。