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

问题概述

如果您使用的是Salient 主题,您会发现“Nectar Video Player”和“Badge”小工具中的内容无法在 WPML 的高级翻译编辑器 (ATE)中进行翻译。

临时解决方法

在继续操作之前,请确保已对您的站点进行完整备份。


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

  • Nectar Video Player 小工具添加以下 XML:
    <wpml-config>
      <shortcodes>
        <shortcode>
            <tag>nectar_video_player_self_hosted</tag>
            <attributes>
                <attribute>video_mp4</attribute>
                <attribute>video_image</attribute>
            </attributes>
        </shortcode>
      </shortcodes>
    </wpml-config>
    <wpml-config>

  • 或者为 Badge 小工具添加以下 XML:
    <wpml-config>
      <shortcodes>
        <shortcode>
        	<tag>nectar_badge</tag>
          	<attributes>
          		<attribute>text</attribute>
            </attributes>
        </shortcode>
      </shortcodes>
    </wpml-config>

所有已知问题 →