- 状态
- 已解决
- 相关插件/主题
- Divi
- 主题标签
- Compatibility
问题概述
将Divi的Email Optin模块与 WPML 结合使用时,Radio、Select 或 Checkbox 等自定义选择字段可能无法正确显示翻译,而是显示原始简码标记。
临时解决方法
- 在您的 WordPress 仪表盘中,前往 WPML > 设置 > 自定义 XML 配置。
- 添加以下 XML 配置并保存:
<wpml-config> <shortcodes> <shortcode> <tag>et_pb_signup_custom_field</tag> <attributes> <attribute encoding="allow_html_tags">field_title</attribute> <attribute encoding="divi_options">checkbox_options</attribute> <attribute encoding="divi_options">select_options</attribute> <attribute encoding="divi_options">radio_options</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>