This thread is resolved. Here is a description of the problem and solution.
Problem:
When updating translations, all apostrophes in Divi Toggle module titles are incorrectly replaced with triple apostrophes across the entire page, not just the edited content. The existing workaround in functions.php from WPML support pages is not resolving the issue.
Solution:
If you're experiencing this issue, we recommend updating your functions.php file with the following code to correctly decode special characters like apostrophes and ampersands in Divi module titles:
// WPML workaround for compsupp-7001<br />add_filter('do_shortcode_tag', 'wpml_compsupp7001_decode_et_pb_button_text', 10, 4);<br />function wpml_compsupp7001_decode_et_pb_button_text($output, $tag, $attr, $m) {<br /> if (class_exists('Sitepress') && 'et_pb_button' === $tag && isset($attr['button_text'])) {<br /> $output = html_entity_decode($output, ENT_QUOTES, 'UTF-8');<br /> }<br /> if (class_exists('Sitepress') && 'et_pb_accordion_item' === $tag && isset($attr['title'])) {<br /> $output = html_entity_decode($output, ENT_QUOTES, 'UTF-8');<br /> }<br /> if (class_exists('Sitepress') && 'et_pb_toggle' === $tag && isset($attr['title'])) {<br /> $output = html_entity_decode($output, ENT_QUOTES, 'UTF-8');<br /> }<br /> return $output;<br />}
Please note that this solution might be outdated or not applicable to your specific case. 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. If the issue persists, please open a new support ticket at WPML support forum for further assistance.
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.
Our next available supporter will start replying to tickets in about 1.69 hours from now. Thank you for your understanding.
This topic contains 3 replies, has 2 voices.
Last updated by aleksandraG-2 1 month, 2 weeks ago.
Assisted by: Bobby.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.