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.
This topic contains 2 replies, has 0 voices.
Last updated by 2 months ago.
Assisted by: Christopher Amirian.