WPML
状态
已由作者解决
解决于
Flatsome 3.18.4
相关插件/主题
Flatsome
主题标签
Compatibility

问题概述

如果您使用的是 Flatsome 主题,在尝试翻译添加到 WooCommerce 产品的自定义选项卡时,您可能会遇到困难。

临时解决方法


  • 前往WPML > 设置 > 自定义 XML 配置页面。

  • 添加以下 XML:
    <wpml-config>
      <custom-fields>
        <custom-field action="translate">wc_productdata_options</custom-field>
      </custom-fields>
      <custom-fields-texts>
        <key name="wc_productdata_options">
          <key name="*">
            <key name="*">
              <key name="*"/>
          	</key>
          </key>
        </key>
      </custom-fields-texts>
    </wpml-config>


  • 对原始产品进行微小修改并保存。

  • 翻译字符串。请注意,您可能需要在搜索框中查找它们。

所有已知问题 →