Problem: The client is trying to display only the non-current languages in the top WPML language switcher using the Elementor WPML Language Switcher widget. Solution: We recommend the following steps to achieve this: 1. Ensure you back up your site for safety reasons. 2. Edit the Elementor header template and remove the WPML Language Switcher widget. 3. Add a "Shortcode" widget and insert the following shortcode:
[wpml_language_selector_widget]
4. Navigate to WPML >> Languages >> Custom Language Switchers, select the "Enable" checkbox, and click the "Customize" button. 5. In the "Language switcher style" dropdown, select "Vertical list", uncheck the "Current language" checkbox, and click the Save button. This will hide the current language from the language switcher.