Saltar al contenido Saltar a la barra lateral

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 respuestas a “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).

Dejar una respuesta

Por favor, mantente en el tema y sé respetuoso con los demás. Si necesitas ayuda con problemas no relacionados con esta publicación, utiliza nuestro Foro de Soporte para iniciar un chat o enviar un ticket.

Puedes usar estas etiquetas:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>