Dies ist das technische Support-Forum für WPML - das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team beantwortet Anfragen im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Schlagwörter: 

This topic contains 1 Antwort, has 2 Teilnehmer.

Last updated by Riffaz vor 2 Monate.

Assigned support staff: Riffaz.

Autor Beiträge
August 21, 2019 um 5:16 am #4428083

beatM-2

I would like to have the language switcher only on the homepage, not on every single page

Did not find an answer to that.

Is there a similar example that we can see? no

hidden link (If you need to login - let me know, I will create and admin account for you)

August 21, 2019 um 6:53 am #4428341

Riffaz
Supporter

Languages: Englisch (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

There is no any option to do this via plugin options.
We can achieve this by adding some css.
For that we have to check your site but I could not access your site.

Anyhow, adding the following code should hide the language switcher on all the pages except the homepage.

body:not(.home) .wpml-ls-item { display: none !important; }

Add this css code to WPML > Languages > Language switcher options > additional css

Let me know how it goes.

Regards,
Riffaz.

Das Thema „[Geschlossen] Language Switcher“ ist für neue Antworten geschlossen.