- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.5.5
- Resolved in
- WPML Multilingual CMS 4.5.9
- Related plugin/theme
- Elementor
Overview of the issue
If you use WPML’s Classic Translation Editor for translating content created with Elementor, toggling between the Visual and Text modes removes paragraph tags on translations. As a result, the content shows all on one line.
Workaround
We strongly recommend you to switch to the Advanced Translation Editor. Otherwise you can also apply this workaround:
- Please make a full backup of your site before proceeding.
- Open your functions.php file.
- Add this code:
/** * Fix for Visual/Text toggle removes paragraph tags on translations and shows on one line */ add_filter('tiny_mce_before_init', function($config) { if ( defined('ELEMENTOR_VERSION') && did_action('admin_init') && get_current_screen()->id === 'wpml_page_tm/menu/translations-queue') { $config['wpautop'] = false; } return $config; });