Resolved
Resolved in: WPML 4.4.4
Overview of the issue
If you are using Elementor Pro plugin and you create a header with a condition to display it only on Any child of a page, the correct header will not be displayed on the translated page.
Workaround
You can manually select the conditions for your child pages.
Or, you can apply this code:
- Make a full backup of your site.
- Open wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-translate-ids.php.
- Find the line:
if ( ! $element_type ) {
- Replace it with:
if ( ! $element_type || $element_type === "any_child_of" ) {