This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is using the Uncode theme with WPBakery Page Builder and has an issue with the 'Pricing Table' shortcode not translating correctly in WPML. Specifically, the 'body' attribute in the shortcode does not retain line breaks when shown in the translation editor.
Solution:
We recommend modifying the WPML configuration XML to specify the attribute type and encoding for the 'body' attribute. Here are the steps:
1. Update the WPML configuration XML as follows:
<shortcode><br /> <tag>uncode_pricing</tag><br /> <attributes><br /> <attribute>title</attribute><br /> <attribute>price</attribute><br /> <attribute type="area" encoding="allow_html_tags">body</attribute><br /> </attributes><br /></shortcode>
2. Make a minor change in the default language page to trigger the translation reload, then attempt to translate the page again.
For more detailed information, please refer to the following documentation:
- https://wpml.org/documentation/support/language-configuration-files/
- https://wpml.org/documentation/support/translating-urlencoded-shortcodes/
If this solution does not apply to your case, or if it seems outdated, we highly 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. Should you need further assistance, please open a new support ticket at WPML support forum.
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 1 reply, has 0 voices.
Last updated by 2 months, 3 weeks ago.
Assisted by: Noman.