跳到内容 跳到侧边栏

Open

Overview of the issue

When using Element Pack Pro with WPML, you might experience the following issue: internal links added via the “Wrapper link” field in Elementor widgets are not translated automatically.

Workaround

Element Pack Pro is currently not compatible with WPML. To enable translation of the Wrapper link field, you will need to manually re-register any compatible Elementor widgets where you are using it by adding element_pack_wrapper_link>url to WPML’s custom XML configuration.

Here is an example with the Icon Box and the Button Widgets.

  1. Go to WPML > Settings > Custom XML Configuration
  2. Add the following configuration code and save:
    <wpml-config>
      <elementor-widgets>
        <widget name="icon-box">
          <fields>
            <field>title_text</field>
            <field>description_text</field>
            <field editor_type="LINK">link>url</field>
            <field editor_type="LINK">element_pack_wrapper_link>url</field>
          </fields>
        </widget>
        <widget name="button">
          <fields>
            <field>text</field>
            <field editor_type="LINK">link>url</field>
            <field editor_type="LINK">element_pack_wrapper_link>url</field>
          </fields>
        </widget>
      </elementor-widgets>
    </wpml-config>
            

2 个回复 至 “Element Pack Pro - Internal links added to the Wrapper link field are not translated automatically”

发表回复

保持话题相关并尊重他人。如果您需要与此帖子无关的问题帮助,请使用我们的支持论坛开始聊天或提交工单。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>