Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 14 replies, has 0 voices.

Last updated by Andreas W. 7 hours, 56 minutes ago.

Assisted by: Andreas W..

Author Posts
September 2, 2025 at 9:59 am

riencov

Background of the issue:
I am trying to make a custom post type 'machines' visible from both hidden link and hidden link. I installed the has_archive => 'machines' as described in the WPML documentation for translating slugs for custom post type archives.

Symptoms:
The custom post type archive page link is not translating automatically.

Questions:
Why is the custom post type archive page link not translating automatically?

September 2, 2025 at 10:05 am
September 2, 2025 at 10:06 am
September 2, 2025 at 11:44 am
September 2, 2025 at 6:13 pm #17367346

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The buttons on your homepage do not seem to be translatable with the WPML Translation Editor.

You are using "Greenlight Content Elements," and each of those custom blocks needs a
proper XML configuration to be translatable with the WPML Translation Editor.

Guide:
https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/

Usually, the author should provide a wpml-config.xml file inside the plugin folder that handles such configurations.

Our support usually does not create such config files for you, but I can offer to provide a WPML test site, on which you can install the "GreenShift - Animation and Page Builder Blocks" and I will try at least to create a config for the blocks in questions, so that we can test if a translation will be successful if the corresponding config is added.

Would this be possible?

Best regards
Andreas

September 3, 2025 at 10:27 am #17369716

riencov

Hi Andreas,

Thanks for your response, but it's not only the buttons on the frontpage. It's also the header menu, which is a standard WP block. It seems a problem on every Synced Pattern, and only to the archive page of a CPT, the rest of the blocks/links/translations are working well.

September 3, 2025 at 11:00 am #17369933

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, this is the same issue, as for example, the "Hero Header" pattern uses a Greenlight Tag Element Custom Block as a button.

I can offer a WPML test site on which you can install the theme and its plugins and we can try to create a config that makes those buttons translatable.

September 3, 2025 at 11:10 am #17369953

riencov

A test site would be perfect. I already have a staging environment where you can do whatever you want?

September 3, 2025 at 11:34 am #17370045

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,
I would like to request temporary access (wp-admin and FTP) to the staging to investigate the issue further.

The required fields are located below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.

Best regards,
Andreas

September 3, 2025 at 11:56 am
September 4, 2025 at 3:05 am #17372974

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have installed our plugin "Multilingual Tools" on your staging site.

If you now visit the WordPress Editor on the homepage, you will see a section at the bottom called "WPML XML Configuration" which contains a config for all Gutenberg Blocks found on the page.

You could, for example, now create a new test page that includes all the blocks that are not translatable, save the page, and obtain a config.

This config can then be saved at WPML > Settings on the tab "Custom XML Configuration".

After that, you only need to select the affected blocks on the original content, save the content, and then open the WPML Translation Editor. Now these blocks should be translatable.

I already created a config for some buttons from Greenshift for you.

Guide:
https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/

---

Note that on the Staging, I am sadly not able to run any further tests, as WPML is not registered.

September 4, 2025 at 7:51 am #17373427

riencov

Hi,
Thanks for your response.

I registered the staging site in WPML.

But still have some issues, it's not translating yet:
* I added the Row/Columns Advanced, as well columns, but still can't translate the main navigation
* I was already able to translate the url's (bij searching for http or /machines/)
* There are now a lot of unnescessary lines in the translation editor, which makes it hard to translate the real strings to be translated. Please check attachment
* it's so strange, every link, from page links to taxonomyu links, are translated properly, except for the post type archive. In our case /machines

Schermafbeelding 2025-09-04 094931.png
September 4, 2025 at 8:16 am #17373677

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Indeed, I still needed to adjust the XML config.

Could you please give it another test now on the staging?

1) Edit the original page or template and save it again
2) Open the translation editor and complete the translation

Note that our support is not responsible for creating the XML configuration. Those issues should be reported to Greenshift.

September 4, 2025 at 8:48 am #17373915

riencov

I made it to translate the main menu and mega menus, but in main content there's still no luck. Is it possible to bulk edit all of the links?

September 4, 2025 at 10:54 am #17374842

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have adjusted the config again, and it should work now.

The current config is:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="greenshift-blocks/element" translate="1">
      <xpath>//a</xpath>
      <xpath type="link">//a/@href</xpath>
      <key name="textContent" />
      <key name="href" type="link" />
      <key name="dynamicAttributes">
        <key name="0">
          <key name="name" />
          <key name="value" />
        </key>
      </key>
    </gutenberg-block>
    <gutenberg-block type="greenshift-blocks/buttonbox" translate="1">
      <xpath>//span</xpath>
      <xpath type="link">//a/@href</xpath>
      <key name="buttonContent" />
      <key name="buttonLink" />
      <key name="linkTitle" type="link" />
      <key name="buttonAnchor" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

Ideal would be, if the author of the theme would include this config in a wpml-config.xml, which will be shipped with the theme inside its root directory.

Please inform the theme support about this issue.