- 状态
- 已解决
- 解决于
- 4.4.0
问题概述
如果您使用手动翻译,请注意,原始语言中页面元素的 CSS 样式会被复制到翻译语言中。
这实际上不是 bug,而是预期功能,因为为了确保所有内容在不同语言之间显示正确,这是必要的。
临时解决方法
如果您使用的是 WPML CMS 版本,可以通过前往 WPML > 设置 > 自定义 XML 配置,并将“_wpb_shortcodes_custom_css”字段设置为“copy-once”来覆盖此功能,如下所示:
<wpml-config>
<custom-fields>
<custom-field action="copy-once">_wpb_shortcodes_custom_css</custom-field>
</custom-fields>
</wpml-config>
然后重新翻译相关页面