問題の概要
WPMLでSalientを使用すると、Chat Thread、Scrolling Text、Single Testimonial要素の一部のテキストが翻訳に送信されないため、翻訳されたページではデフォルト言語で表示されます。
回避策
- WPML設定カスタム XML 設定に移動し、以下のXMLを追加して保存します。
XML
<wpml-config> <shortcodes> <shortcode> <tag>nectar_single_testimonial</tag> <attributes> <attribute>quote</attribute> <attribute>name</attribute> <attribute>subtitle</attribute> </attributes> </shortcode> <shortcode> <tag>nectar_scrolling_text</tag> <attributes> <attribute>text_repeat_divider_custom</attribute> </attributes> </shortcode> <shortcode> <tag>nectar_chat_thread</tag> <attributes> <attribute>outgoing_bubble_name</attribute> <attribute>incoming_bubble_name</attribute> </attributes> </shortcode> <shortcode> <tag>nectar_chat_thread_bubble</tag> </shortcode> </shortcodes> </wpml-config>
- ページを再度翻訳します。