This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to embed a Google map on your page, but the visual box has disappeared, leaving only the HTML version visible in the Classic Translation Editor (CTE). Previously, a code change involving the removal of 'iframe' from a blacklist in a specific PHP file resolved the issue, but the code has disappeared after an update.
Solution:
If you're experiencing this issue, we recommend you edit the file at
wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/ExtraFieldDataInEditor.php
. Previously, the modification was made at line 155, but due to updates, it has now moved to line 199. You should locate the blacklist array and modify it by removing 'iframe' from it, changing the line from:
$black_list = ['script', 'style', 'iframe'];
to
$black_list = ['script', 'style'];
This change should restore the visual box in the CTE.
Please note that this solution might be irrelevant if it's outdated or not applicable to your 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.