Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to translate the metadata 'Artikelnummer' and 'Kategorie' on a single product page, as well as a code snippet generating a chart with specific item-related properties using WPML.
Solution:
To translate the metadata, please add the following code to WPML > Settings > Custom XML:

<wpml-config>
  <elementor-widgets>
    <widget name="woocommerce-product-meta">
      <fields>
        <field>sku_caption</field>
        <field>category_caption_single</field>
        <field>category_caption_plural</field>
        <field>tag_caption_single</field>
        <field>tag_caption_plural</field>
        <field>sku_missing_caption</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

After adding this code, make a small change to the default language template, save it, and re-translate. The caption text should now appear correctly.
For the code snippet issue, if you are adding it via an Elementor template, it is best to manually edit the second language Elementor template and adjust the custom code. Since custom code is not translatable via the WPML editor, it should remain the same in both languages.

If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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.

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Dražen 1 week ago.

Assisted by: Dražen.

Author Posts
June 17, 2025 at 8:52 am #17140776

stefanoC-80

Background of the issue:
I am trying to translate the metadata shown on the single product page and a code snippet generating a chart with specific item-related properties on my site hidden link. I use the widget Product Metadata for the metadata and Code Snippets Pro for the chart.

Symptoms:
I cannot find a way to translate the metadata 'Artikelnummer' and 'Kategorie' on the product page hidden link. Additionally, I cannot translate the code snippet generating the chart between the product information and gallery on hidden link.

Questions:
How can I translate the metadata shown on the single product page using WPML?
How can I translate the code snippet generating the chart with specific item-related properties using WPML?

June 17, 2025 at 9:27 am #17141480

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

please add next code to WPML > Settings > Custom XML

<wpml-config>
  <elementor-widgets>
    <widget name="woocommerce-product-meta">
      <fields>
        <field>sku_caption</field>
        <field>category_caption_single</field>
        <field>category_caption_plural</field>
        <field>tag_caption_single</field>
        <field>tag_caption_plural</field>
        <field>sku_missing_caption</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

Make a small change to default language template, save and re-translate. Caption text should show up now.

As for code issue, I am not sure how are you adding it, if same via Elementor template, then best to manually edit 2nd language Elementor template and adjust the custom code, since custom code is not translatable via WPML editor, it is not expected to translate code, it should be same in both languages.

Regards,
Drazen