Skip Navigation

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the Kadence Block‘s “Advanced Button” to create a single button link pointing to an internal page, WPML does not automatically translate the internal link to its corresponding translated version.

Workaround

To enable automatic translation of these internal links, follow these steps:

  • Go to WPML > Settings > Custom XML Configuration.
  • Add the following XML code and click “Save”:
    <wpml-config>
      <gutenberg-blocks>
        <gutenberg-block type="kadence/singlebtn" translate="1">
          <key name="link" type="link" />
          <key name="text" />
        </gutenberg-block>
      </gutenberg-blocks>
    </wpml-config>
    

Specifying type=”link” for the link attribute enables WPML to automatically translate the URL. For further guidance on configuring custom Gutenberg blocks, refer to our documentation on How to make custom Gutenberg blocks translatable.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>