Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 0 voices.

Last updated by Noman 18 hours, 30 minutes ago.

Assisted by: Noman.

Author Posts
January 20, 2025 at 2:18 am #16611505

pierreM-15

Background of the issue:
I have only one page that will be translated on this site, which is hidden link. I would like the language menu to be displayed only on this page, in any language. I set up French, but there will be about 5 languages. I tried to disable the current language from the menu customizer, but it did not work. When I go to another page like hidden link, the menu is there with the current language. I clicked in Appearance/menu to create a menu switcher from the original language.

Symptoms:
The language menu is appearing on all pages instead of only on the specified page.

Questions:
How can I display the language menu only on the specified page?
Why is the language menu appearing on all pages despite my settings?

January 20, 2025 at 9:52 am #16612366

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support. It seems you want to display the language switcher if the page is translated into secondary language, otherwise it should not be visible.

You should be able to achieve it by following the either of the below steps:

1. Add the below CSS in the custom CSS section of the theme:

.wpml-ls-current-language.wpml-ls-menu-item:not(.menu-item-has-children) {
    display: none !important;
}

2. When you choose the Dropdown option from the Language menu items style section then you can’t disable the Current Language option as it is necessary to build the dropdown language switcher.

If you want to disable the Current language option then please select the List of languages option instead of Dropdown from WPML >> Languages > Menu Language Switcher as you can see in the attached screenshot.

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/how-to-display-or-hide-the-language-switcher-on-specific-pages/

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

Language switcher style.jpg