Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues with HTML tags like

<br>

showing up on the front end of your translated page instead of creating line breaks as intended, we have a solution for you.
Solution:
First, ensure that in WPML->Settings->XLIFF file options, the 'Do nothing – all new line characters will stay untouched' option is enabled. If this doesn't resolve the issue, we recommend adding specific XML configuration to allow HTML tags in your titles and content. Here's how you can do it:

<wpml-config><br />  <shortcodes><br />    <shortcode><br />      <tag>et_pb_fullwidth_header</tag><br />      <attributes><br />        <attribute encoding="allow_html_tags">title</attribute><br />        <attribute encoding="allow_html_tags">title_tablet</attribute><br />        <attribute encoding="allow_html_tags">title_phone</attribute><br />        <attribute encoding="allow_html_tags">subhead</attribute><br />        <attribute encoding="allow_html_tags">subhead_tablet</attribute><br />        <attribute encoding="allow_html_tags">subhead_phone</attribute><br />        <attribute>button_one_text</attribute><br />        <attribute>button_one_text_tablet</attribute><br />        <attribute>button_one_text_phone</attribute><br />        <attribute type="link">button_one_url</attribute><br />        <attribute>button_two_text</attribute><br />        <attribute>button_two_text_tablet</attribute><br />        <attribute>button_two_text_phone</attribute><br />        <attribute type="link">button_two_url</attribute><br />        <attribute>logo_alt_text</attribute><br />        <attribute>logo_title</attribute><br />        <attribute type="media-url">background_image</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><br /><br />After adding this code, make a minor edit to the original page and update the translation. This should resolve the issue with HTML tags appearing incorrectly.<br /><br />If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at <a href="https://wpml.org/known-issues/">https://wpml.org/known-issues/</a>, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at <a href="https://wpml.org/forums/forum/english-support/">WPML support forum</a>.

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 2 replies, has 0 voices.

Last updated by John-Pierre Cornelissen 2 months ago.

Assisted by: Christopher Amirian.

Author Posts
June 2, 2026 at 1:03 pm

John-Pierre Cornelissen

The home page title is

Italiaans Restaurant
San Mario's

The source page has added to ensure the line breaks at the right spot.
hidden link

The problem is that the translated page now shows on the front end.
Italiaans Restaurant San Mario's
hidden link

In the ATE it looks like a proper line break.

How do I fix that?

Thanks
JP

June 3, 2026 at 10:19 am #18078115

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Welcome to WPML support. The issue is reported to the compatibility team.

As a workaround please use the Text widget and add the HTML tags you want for the title manually.

Thanks.

June 3, 2026 at 12:22 pm #18078732

Christopher Amirian
Supporter

Hi,

Please add the code below to WordPress Dashboard > WPML > Settings > Custom XML Configuration:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>et_pb_fullwidth_header</tag>
      <attributes>
        <attribute encoding="allow_html_tags">title</attribute>
        <attribute encoding="allow_html_tags">title_tablet</attribute>
        <attribute encoding="allow_html_tags">title_phone</attribute>
        <attribute encoding="allow_html_tags">subhead</attribute>
        <attribute encoding="allow_html_tags">subhead_tablet</attribute>
        <attribute encoding="allow_html_tags">subhead_phone</attribute>
        <attribute>button_one_text</attribute>
        <attribute>button_one_text_tablet</attribute>
        <attribute>button_one_text_phone</attribute>
        <attribute type="link">button_one_url</attribute>
        <attribute>button_two_text</attribute>
        <attribute>button_two_text_tablet</attribute>
        <attribute>button_two_text_phone</attribute>
        <attribute type="link">button_two_url</attribute>
        <attribute>logo_alt_text</attribute>
        <attribute>logo_title</attribute>
        <attribute type="media-url">background_image</attribute>
        <attribute encoding="allow_html_tags">content_tablet</attribute>
        <attribute encoding="allow_html_tags">content_phone</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

After that:

- Go to your Dashboard > Pages.
- Open the edit screen of the original page. You should see a pencil/circle/gear icon in the sidebar options under the "Languages" section.
- Make a small change, for example, add an extra blank space at the end of a sentence/paragraph.
- Save it.
- You should now see that a circular arrow appears beside the 2nd languages links, this means that an update is required.
- Edit the translation again and save it up to 100% translated.

Please tell us if it will work for you.

Thanks.

June 4, 2026 at 8:48 am #18080752

John-Pierre Cornelissen

Yes, that works. Thank you very much for your help!