Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.
Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| - | 8:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
| - | 14:00 – 17:00 | 14:00 – 18:00 | 14:00 – 18:00 | 13:00 – 17:00 | 13:00 – 17:00 | - |
Supporter-Zeitzone: Europe/Zagreb (GMT+01:00)
Schlagwörter: Custom Work
Dieses Thema enthält 14 Antworten, hat 1 Stimme.
Zuletzt aktualisiert von Bruno Kos Vor 2 Tage, 18 Stunden.
Assistiert von: Bruno Kos.
| Autor | Beiträge |
|---|---|
| November 26, 2025 um 8:16 p.m. #17613261 | |
|
anatoliW |
Background of the issue: Symptoms: Questions: |
| November 26, 2025 um 8:34 p.m. #17613289 | |
|
anatoliW |
This is how the block are broken, when not using the advanced translation manager and make the translation work. Please help 🙂 |
| November 27, 2025 um 3:13 a.m. #17613749 | |
|
Andreas W. WPML-Unterstützer seit 12/2018 Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Zeitzone: America/Lima (GMT-05:00) |
Hallo, Hier ist ein Link zu einer WPML Test Site. Bitte versuche das Problem hier mit deinem Custom Block zu replizieren, damit ich mir das einmal genauer anschauen kann. Du kannst das File Manager Plugin verwenden, um auf den Server zuzugreifen. Ein-Klick-Anmeldung: Hinterlass mir bitte einen Kommentar, sobald das Problem repliziert wurde. Mit freundlichen Grüßen |
| Dezember 5, 2025 um 9:21 p.m. #17639749 | |
|
Andreas W. WPML-Unterstützer seit 12/2018 Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Zeitzone: America/Lima (GMT-05:00) |
Hallo, ich wollte dich daran erinnern, dass ich Ihnen vor einer Woche einen Link zu einer Testseite geschickt habe. Siehe meinen vorherigen Kommentar. Falls du weiterhin Hilfe benötigen, installiere bitte die neueste Version deines Themes und/oder des benutzerdefinierten Plugins. Bei Bedarf kannst du das WP File Manager Plugin verwenden, um auf den Server zuzugreifen. Hinterlasse mir bitte einen Kommentar, sobald du es erledigt hast. Ich werde dann versuchen, das Problem nachzustellen und weitere Schritte einzuleiten. Falls du keine weitere Hilfe benötigst, markiere dieses Ticket bitte als gelöst. Mit freundlichen Grüßen |
| Dezember 15, 2025 um 9:12 a.m. #17663186 | |
|
anatoliW |
Hi, vielen Dank für die Rückmeldung und entschuldige bitte meine späte Rückmeldung. Ich würde mich über Hilfe sehr freuen! Beste Grüße |
| Dezember 15, 2025 um 3:16 p.m. #17664894 | |
|
Bruno Kos WPML-Unterstützer seit 12/2018
Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français ) Zeitzone: Europe/Zagreb (GMT+01:00) |
Hi, Thanks for setting everything up on the sandbox — much appreciated. To continue the investigation, I need to locate the exact place where the issue is reproduced, as I’m currently unable to identify it on the test site. Could you please let me know exactly where the broken synchronized block appears? 1. Where is the block used? * A specific page (please share the page URL or title), or 2. Which entity are you translating when the issue occurs? * The page itself, or 3. Which translation method are you using when it breaks? * Advanced Translation Editor, or Once I have the exact location (page name or entity), I’ll be able to reproduce the issue and continue troubleshooting. Thanks in advance, |
| Dezember 15, 2025 um 3:30 p.m. #17664946 | |
|
anatoliW |
It's on the "Sample Page" the reusable blocks are not translatable at all and the other ones need to be "Recovered" when translating it. Here is the video about it: |
| Dezember 16, 2025 um 7:00 a.m. #17666116 | |
|
Bruno Kos WPML-Unterstützer seit 12/2018
Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français ) Zeitzone: Europe/Zagreb (GMT+01:00) |
I've generated XML for the Gutenberg blocks that show up on versteckter Link, here is that XML: <wpml-config>
<gutenberg-blocks>
<gutenberg-block type="site/hero-block" translate="1">
<xpath>//p[contains(@class, "ff-body")]</xpath>
<xpath>//h1[contains(@class, "display-3")]</xpath>
<xpath>//em[1]</xpath>
<xpath>//em[2]</xpath>
<xpath>//p[contains(@class, "fs-lg")]</xpath>
<key name="title" />
</gutenberg-block>
<gutenberg-block type="site/advanced-text" translate="1">
<xpath>//strong</xpath>
<xpath>//p[contains(@class, "wp-block-site-advanced-text")]</xpath>
<key name="headline" />
<key name="className" />
</gutenberg-block>
<gutenberg-block type="site/services-slider" translate="1">
<xpath>//p[contains(@class, "text-uppercase")]</xpath>
<xpath>//h2[contains(@class, "mt-0")]</xpath>
<xpath>//p[contains(@class, "fs-base")]</xpath>
<xpath>//span[contains(@class, "fs-base")]</xpath>
<xpath type="link">//a[contains(@class, "btn-outline-primary")]/@href</xpath>
<key name="slides">
<key name="0">
<key name="title" />
<key name="description" />
</key>
<key name="1">
<key name="title" />
<key name="description" />
</key>
</key>
</gutenberg-block>
<gutenberg-block type="site/contact-section" translate="1" />
</gutenberg-blocks>
</wpml-config>
After this, about 50% of new texts appeared in the translation editor. Can you tell me if there is anything else missing from translation editor but is added a text directly on that page? As for the pattern, I've translated this one versteckter Link Even though "Warum Trainings von alexander verweyen®?" is translated, versteckter Link still shows wrong, this is one of the translation issues, correct? Also, these 3 buttons below it, where are these crated? I can't see them within the pattern. And the last section - Jetzt Kontakt aufnehmen - this is not a block but is also added directly to versteckter Link, correct? For some reason I don't see these texts within "RAW content from the post_content column of the current post" so I wasn't able to generate XML for it so that it appears in the translation editor. Let me know about these things so I could check further and check this with our 2nd tier support for further debugging. |
| Dezember 16, 2025 um 8:42 a.m. #17666483 | |
|
anatoliW |
Thank you! How should I handle the XML? Where it should be saved to make the translations work? Now the buttons still missing in "Warum Trainings von alexander verweyen®?", the headline and the headlines of the tabs. The "Jetzt Kontakt aufnehmen" is controlled fron Customizer globally. I would love if you can help me to translate it completely. Best regards! |
| Dezember 16, 2025 um 11:17 a.m. #17667259 | |
|
Bruno Kos WPML-Unterstützer seit 12/2018
Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français ) Zeitzone: Europe/Zagreb (GMT+01:00) |
Regarding “Jetzt Kontakt aufnehmen”: Also, regarding the buttons below (e.g. Erfolg, etc.): |
| Dezember 16, 2025 um 11:57 a.m. #17667355 | |
|
anatoliW |
Sorry for the confusion. Regarding “Jetzt Kontakt aufnehmen”: Also, regarding the buttons below (e.g. Erfolg, etc.): Best Regards |
| Dezember 16, 2025 um 1:02 p.m. #17667583 | |
|
Bruno Kos WPML-Unterstützer seit 12/2018
Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français ) Zeitzone: Europe/Zagreb (GMT+01:00) |
I've updated XML further, now we have: <wpml-config>
<gutenberg-blocks>
<gutenberg-block type="site/hero-block" translate="1">
<xpath>//p[contains(@class, "ff-body")]</xpath>
<xpath>//h1[contains(@class, "display-3")]</xpath>
<xpath>//em[1]</xpath>
<xpath>//em[2]</xpath>
<xpath>//p[contains(@class, "fs-lg")]</xpath>
<key name="title" />
</gutenberg-block>
<gutenberg-block type="site/advanced-text" translate="1">
<xpath>//strong</xpath>
<xpath>//p[contains(@class, "wp-block-site-advanced-text")]</xpath>
<key name="headline" />
<key name="className" />
</gutenberg-block>
<gutenberg-block type="site/services-slider" translate="1">
<xpath>//p[contains(@class, "text-uppercase")]</xpath>
<xpath>//h2[contains(@class, "mt-0")]</xpath>
<xpath>//p[contains(@class, "fs-base")]</xpath>
<xpath>//span[contains(@class, "fs-base")]</xpath>
<xpath type="link">//a[contains(@class, "btn-outline-primary")]/@href</xpath>
<key name="slides">
<key name="0">
<key name="title" />
<key name="description" />
</key>
<key name="1">
<key name="title" />
<key name="description" />
</key>
</key>
</gutenberg-block>
<gutenberg-block type="site/contact-section" translate="1" />
<!-- Advanced Text block -->
<gutenberg-block type="site/advanced-text" translate="1">
<xpath>//h1</xpath>
<xpath>//h2</xpath>
<xpath>//p[contains(@class, "wp-block-site-advanced-text")]</xpath>
<xpath>//sup</xpath>
<key name="headline" />
<key name="className" />
</gutenberg-block>
<!-- Tab Panels wrapper (navigation labels live in attributes) -->
<gutenberg-block type="site/tab-panels" translate="1" />
<!-- Single Tab Panel -->
<gutenberg-block type="site/tab-panel" translate="1">
<!-- Visible rendered content -->
<xpath>//h3[contains(@class, "h2")]</xpath>
<xpath>//p[contains(@class, "fs-base")]</xpath>
<!-- Block attributes -->
<key name="navLabel" />
<key name="title" />
<key name="description" />
<key name="ctaText" />
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>
It is added here versteckter Link, so through the template translation (so versteckter Link) I was able to translate the buttons as well. However it is still not clear how is this rendered:
If I open versteckter Link and if I search for it within the page code, it doesn't seem to be there so I can't register XML for it. |
| Dezember 18, 2025 um 8:36 a.m. #17673569 | |
|
anatoliW |
Thank you very much for the explanation! This text here is rendered in the block itself: But the rest of the block is from the customizer, here is how the fields are set in the block: The rest of the block is in Customizer - > Kontaktdaten -> Popup Einstellungen. It would be great if we also can translate it 🙂 |
| Dezember 19, 2025 um 6:07 a.m. #17676620 | |
|
Bruno Kos WPML-Unterstützer seit 12/2018
Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français ) Zeitzone: Europe/Zagreb (GMT+01:00) |
I’m checking this with our second-tier as I still don't see it within post content (these texts), I will keep you updated. |
| Dezember 19, 2025 um 11:53 a.m. #17677711 | |
|
Bruno Kos WPML-Unterstützer seit 12/2018
Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français ) Zeitzone: Europe/Zagreb (GMT+01:00) |
The issue is not a WPML bug. The contact block is coded so that its current string values (for example “Jetzt Kontakt aufnehmen”) are hard-coded as default values in the theme file verweyen/inc/custom-blocks/contact-section-block.php. Because of this, when the block uses the default title or description, WordPress does not save those values as block attributes. Gutenberg only serializes attributes when their values differ from the defined defaults. Since the default text is therefore not stored in the post content, WPML has nothing to detect or translate when translating the page. If the text is changed in any way (for example, just changing the capitalisation), the value is then saved as a block attribute. Once saved, it becomes part of the post content and can be translated via WPML, including by adding custom XML configuration for the block attributes. This can be seen on the sandbox, where modified texts now appear in the block markup: <!-- wp:site/contact-section {"title":"A non-default title","description":"A non-default description."} /-->
The recommended solution is to update the block so that the title and description are always saved as block attributes, even when they match the default values. This aligns the block with Gutenberg best practices, ensures the content is present in the post data, and makes the block fully compatible with WPML’s Translation Editor without relying on fragile workarounds. |


