Navigation überspringen

Dieses Thema ist gelöst. Hier finden Sie eine Beschreibung des Problems und der Lösung.

Problem:
The client is experiencing an issue where HTML tags are being displayed in the translations on their Divi-based website.

Solution:
We recommend enabling WPML to properly register the HTML entities that are not being processed correctly. To do this, navigate to WPML > Settings > Custom XML Configuration tab and insert the following code:

<wpml-config><br />    <shortcodes><br />        <shortcode><br />            <tag>et_pb_slide</tag><br />            <attributes><br />                <attribute encoding="allow_html_tags">heading</attribute><br />                <attribute encoding="allow_html_tags">heading_tablet</attribute><br />                <attribute encoding="allow_html_tags">heading_phone</attribute><br />                <attribute>image_alt</attribute><br />                <attribute>button_text</attribute><br />                <attribute>button_text_tablet</attribute><br />                <attribute>button_text_phone</attribute><br />                <attribute type="link">button_link</attribute><br />                <attribute type="link">link_option_url</attribute><br />                <attribute type="media-url">image</attribute><br />                <attribute type="media-url">image_tablet</attribute><br />                <attribute type="media-url">image_phone</attribute><br />                <attribute type="media-url">background_image</attribute><br />                <attribute type="media-url">background_image_tablet</attribute><br />                <attribute type="media-url">background_image_phone</attribute><br />                <attribute encoding="allow_html_tags">content_tablet</attribute><br />                <attribute encoding="allow_html_tags">content_phone</attribute><br />            </attributes><br />        </shortcode><br />    </shortcodes><br /></wpml-config>

After adding the code, make a minor change to the original content and update the translation that is displaying the HTML entities. This should resolve the problem. If this solution does not seem relevant or if you need further assistance, please open a new support ticket.

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.

Schlagwörter: 

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Lucas Vidal de Andrade Vor 1 Jahr, 1 Monat.

Assistiert von: Lucas Vidal de Andrade.

Verfasser Beiträge
Dezember 18, 2023 unter 11:49 am

sebastianP-53

Divi showing HTML in translations

Dezember 18, 2023 unter 12:20 pm
Dezember 19, 2023 unter 3:54 pm #15094657

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hello,

My name is Lucas and I'll be your supporter. I was able to reproduce your issue in an isolated environment, which means that this specific Divi feature is incompatible with WPML at the moment. I already sent it to our compatibility team, so they can find a permanent solution for your issue. This should take a few days. As soon as I have feedback from them, I'll get back to you!

Best regards,
Lucas Vidal

Dezember 21, 2023 unter 7:46 am #15107067

sebastianP-53

Hello Lucas,

Thank you for the information, I will wait for your update.

Best regards.

Januar 3, 2024 unter 12:00 pm #15146308

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for your patience. I received feedback from our developers. To solve your issue, we have to enable WPML to properly register the HTML entities that are not working as expected. To achieve that, please go to WPML > Settings > Custom XML Configuration tab and paste the following code:

<wpml-config>
    <shortcodes>
        <shortcode>
            <tag>et_pb_slide</tag>
            <attributes>
                <attribute encoding="allow_html_tags">heading</attribute>
                <attribute encoding="allow_html_tags">heading_tablet</attribute>
                <attribute encoding="allow_html_tags">heading_phone</attribute>
                <attribute>image_alt</attribute>
                <attribute>button_text</attribute>
                <attribute>button_text_tablet</attribute>
                <attribute>button_text_phone</attribute>
                <attribute type="link">button_link</attribute>
                <attribute type="link">link_option_url</attribute>
                <attribute type="media-url">image</attribute>
                <attribute type="media-url">image_tablet</attribute>
                <attribute type="media-url">image_phone</attribute>
                <attribute type="media-url">background_image</attribute>
                <attribute type="media-url">background_image_tablet</attribute>
                <attribute type="media-url">background_image_phone</attribute>
                <attribute encoding="allow_html_tags">content_tablet</attribute>
                <attribute encoding="allow_html_tags">content_phone</attribute>
            </attributes>
        </shortcode>
    </shortcodes>
</wpml-config>

Subsequently, make a small change to your original content and update the translation that is showing the HTML entities. That should solve your issue. If you need any assistance during this process, please let me know. I attached a screenshot for you to see what the XML config should look like.

Settings _ Sandbox _ WordPress.jpeg