問題の概要
WPMLでMailOptin Proを使用する場合、MailOptinブロックのオプトインを翻訳で変更できず、[mo-click-launch]ショートコードのリンクテキストは翻訳の対象になりません。
回避策
- オプトインの場合:MailOptinブロックの代わりに、ショートコードブロックでショートコード
[mo-optin-form id="..."]を使用します。翻訳時に各言語で別のオプトインを選択できます。 - リンクテキストの場合:WPML設定カスタム XML 設定に移動し、次のXMLを追加して保存します。
XML
<wpml-config> <shortcodes> <shortcode> <tag>mo-click-launch</tag> <attributes> <attribute>link</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>