问题概述
当您将WPML与Spectra Legacy一起使用时,无法翻译弹出窗口。每种语言都会以默认语言显示弹出窗口。如果您将弹出窗口文章类型设置为可翻译,翻译后的弹出窗口不会显示,因为它无法获取弹出窗口设置。
临时解决方法
- 前往 WPML设置自定义 XML 配置,添加此代码并保存:
<wpml-config> <custom-types> <custom-type translate="1">spectra-popup</custom-type> </custom-types> <custom-fields> <custom-field action="copy">spectra-popup-type</custom-field> <custom-field action="copy">spectra-popup-enabled</custom-field> <custom-field action="copy">spectra-popup-repetition</custom-field> </custom-fields> </wpml-config> - 翻译您的弹出窗口。