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.