Overview of the Issue
There is a compatibility issue with Happy Elementor Addons, particularly with the Content Switcher widget. When used in a multilingual site set up with WPML, the Content Switcher widget fails to display the correct translated templates according to the language currently being viewed. Instead, it only shows the original language templates, ignoring the translations.
Workaround
This issue is fixed in Happy Elementor Addons 3.10.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.
Please, make sure of having a full backup of your site before proceeding.
- Open …/wp-content/plugins/happy-elementor-addons/widgets/content-switcher/widget.php file.
- Look for line 1207.
- Change:
else :
- For:
else : $primary['saved_section'] = apply_filters('wpml_object_id', $primary['saved_section'], 'elementor_library'); $primary['saved_pages'] = apply_filters('wpml_object_id', $primary['saved_pages'], 'elementor_library'); $secondary['saved_section'] = apply_filters('wpml_object_id', $secondary['saved_section'], 'elementor_library'); $secondary['saved_pages'] = apply_filters('wpml_object_id', $secondary['saved_pages'], 'elementor_library');
Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question