- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.6.5
- Resolved in
- WPML Multilingual CMS 4.7.4
- Related plugin/theme
- Elementor
- Topic tags
- Compatibility
Overview of the issue
When using Elementor Pro’s Global Widget for Forms, the feedback Custom Messages do not get translated in a translated page.
Workaround
Please, make sure of having a full backup of your site before proceeding.
- Open the functions.php file from your theme.
- Add the following code:
add_filter( 'elementor/documents/get/post_id', function( $post_id ) { if ( 'elementor_library' === get_post_type( $post_id ) ) { $post_id = apply_filters( 'wpml_object_id', $post_id, 'elementor_library', true ); } return $post_id; } );