跳到内容 跳到侧边栏

Open

Reported for: WPML Multilingual CMS 4.7.6

Topic Tags: Bug, Compatibility

Overview of the issue

When translating a page created by Divi 5 and having a button with a dynamic link, you might encounter issues and it may break your page layout.

Workaround

At present you have two options:
– Convert the links to not dynamic links and they should work
Or
– Bypass their translation and use this wpml-config that you can place in WPML > Settings > Custom XML configuration:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="divi/button" translate="1">
            <key name="button">
                <key name="innerContent">
                    <key name="*">
                        <key name="value">
                            <key name="text" />
                        </key>
                    </key>
                    <key name="tablet">
                        <key name="value">
                            <key name="text" />
                        </key>
                    </key>
                    <key name="phone">
                        <key name="value">
                            <key name="text" />
                        </key>
                    </key>
                </key>
            </key>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

2 个回复 至 “Divi 5 - Dynamic links added to a button may lead to improper translation”

  1. Thank you very much for your prompt response!

    I applied the configuration, but unfortunately, it didn’t help. And if we choose to convert the links to non-dynamic, it will greatly complicate our future work and increase the time it takes to maintain the site, since the dynamic links are linked to the date, 60 quantitative fields, and so on.

    Are there no other solutions to this problem? Is there a planned solution?

    • Hello,
      Sorry to hear you’re still experiencing issues.
      When you add the custom XML, it overrides the default configuration, and prevents the links from being translatable. Internal links should still be translated automatically by WPML, but external links won’t be translatable. Did you try making a minor change to the original page (like adding a space) and then revalidating the translation?

      That said, yes we do have a permanent fix planned for WPML 4.9, which is expected to be released by the end of this month (I don’t have aa exact ETA yet).

发表回复

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

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