Skip Navigation

Resolved by author

Topic Tags: Compatibility

Overview of the issue

If you are using the Advanced Gallery block within the Kadence Blocks plugin, you will encounter that alt and caption texts are not translated in the front-end.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Go to WPML > Settings > Custom XML Configuration page.
  • Add the following XML:
    <wpml-config>
      <gutenberg-blocks>
        <gutenberg-block type="kadence/advancedgallery" translate="1">
          <key name="imagesDynamic">
            <key name="*">
              <key name="alt" />
              <key name="caption" />
            </key>
          </key>
        </gutenberg-block>
      </gutenberg-blocks>
    </wpml-config>
    
  • Refresh the translation by adding a small modification to the original content.