Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client wants to hide the current language using Elementor WPML language switcher widget.

Solution:
This option is not available in Elementor widget at the moment and it’s already reported to our developers, you may follow the workaround that is provided here:
https://wpml.org/errata/elementor-its-not-possible-to-fully-customize-wpml-language-switchers-widget/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by pascalB-17 11 months, 3 weeks ago.

Assisted by: Noman.

Author Posts
May 9, 2023 at 11:13 am #13612905

pascalB-17

Tell us what you are trying to do?
Only show the language flag of the other language - NOT show the language flag of the current language (In the settings this is an option - seems to be missing in the widget options)

Is there any documentation that you are following?
Just the Widget options (not a lot)

Is there a similar example that we can see?
No

What is the link to your site?
hidden link
(Flags in the header - should only show english when language is italian and vice versa)

Bildschirm­foto 2023-05-09 um 13.10.24.png
May 9, 2023 at 4:02 pm #13615651

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Yes, this option is not available in Elementor widget at the moment and it’s already reported to our developers as you can see here:
https://wpml.org/errata/elementor-its-not-possible-to-fully-customize-wpml-language-switchers-widget/

So, you may follow any of the below step to achieve it:

1. Add a below CSS in custom CSS section to hide the current language:

.wpml-elementor-ls .wpml-ls-statics-shortcode_actions .wpml-ls-current-language {
   display: none !important;
}

2. Go to WPML >> Languages > Custom language switchers, and enable it. After that please configure the switcher and press the save button.

Then go to Elementor builder and use WPML custom switcher shortcode:

[wpml_language_selector_widget]

Here is a doc for more details: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#using-wpml-shortcodes

Please let me know if this resolves your issue or if you need further assistance

Thank you

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.