WPML
Status
Resolved
Resolved in
Happy Elementor Addons 3.10.0
Related plugin/theme
Happy Elementor Addons
Topic tags
Compatibility

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

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'); 

All known issues →