WPML

问题概述

将 Ultimate Addons for WPBakery 与 WPML 配合使用时,您可能会遇到以下问题:在已翻译的页面上,该附加组件的按钮和框的链接会打开默认语言页面,且部分文本(Video Banner 文本和 Timeline Read More 文本)仍显示为默认语言。

临时解决方法

前往 WPML设置 并将以下内容添加到自定义 XML 配置中:

XML
<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>bsf-info-box</tag>
      <attributes>
        <attribute>title</attribute>
        <attribute>read_text</attribute>
        <attribute type="link" encoding="vc_link">link</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>ultimate_video_banner</tag>
      <attributes>
        <attribute>video_banner_title</attribute>
        <attribute>video_banner_content</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>icon_timeline_item</tag>
      <attributes>
        <attribute>time_title</attribute>
        <attribute>time_read_text</attribute>
        <attribute type="link" encoding="vc_link">time_link</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>ult_content_box</tag>
      <attributes>
        <attribute type="link" encoding="vc_link">link</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

然后再次翻译页面。对于该附加组件的其他链接属性,请使用相同的 type="link" encoding="vc_link" 格式。

所有已知问题

需要有关此问题的帮助?

提出支持问题,我们将与您一起调查。