問題の概要
WPMLでWooCommerce Fast Cartを使用する場合、カートボタンの「Button text」設定および[fast_cart text="..."]ボタンのテキストは、翻訳されたページでもデフォルト言語のままになります。
回避策
- WPML設定カスタム XML 設定に移動し、以下のXMLを追加して保存します。
XML
<wpml-config> <shortcodes> <shortcode> <tag>fast_cart</tag> <attributes> <attribute>text</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>
[fast_cart text="..."]ショートコードを使用してページにカートボタンを追加し、ページを翻訳します。これにより、ボタンのテキストがページと一緒に翻訳されます。- 「Button text」設定には、現時点では回避策はありません。