Resolved by author
Overview of the issue
If you are using TheGem theme, you may encounter an issue where the Elementor Header template built with its Template Builder is not translating correctly when switching to secondary languages.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open …/wp-content/themes/thegem-elementor/functions.php file.
- Look for line 7165.
- Replace:
$header_template = get_post(intval($page_settings['header_builder']));
- With:
$header_template = get_post(apply_filters( 'wpml_object_id', intval($page_settings['header_builder']), 'thegem_templates', true ));