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.

This topic contains 8 replies, has 2 voices.

Last updated by ranaN 5 months, 3 weeks ago.

Assigned support staff: Riffaz.

Author Posts
March 2, 2019 at 11:33 am #3264470

ranaN

Tell us what you are trying to do?
> I'm trying to hide Language Switcher on non-translated pages, but I can't. I also checked the option for it and see I already chose the 'Skip' option but it stills shows on all the pages. (I attached an image from our website)
Is there any documentation that you are following?
> -
Is there a similar example that we can see?
> -
What is the link to your site?
> hidden link

March 3, 2019 at 8:11 am #3265777

Riffaz
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support.

Have you tried to choose style "List of languages " and uncheck the option "Current language" in WPML >> Languages > Menu language switcher? : hidden link
0In this case, you won't be getting the language switcher if the page/post doesn't have a translation.
It means that the language switcher will persist on the translated home page only.

Let me know how it goes.

Regards,
Riffaz.

March 3, 2019 at 8:29 am #3265781

ranaN

Hi Riffaz,
I would like to have both dropdown option and uncheck Current language. But I can't.
In the attached image, you can see that I can't uncheck this option

March 4, 2019 at 12:47 pm #3268694

Riffaz
Supporter

Languages: English (English )

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

Hi,

Could you please check this with 'list' and see?
Actually you can not have this deselected if you are using it in menu dropdown.

Regards,

March 4, 2019 at 1:12 pm #3268831

ranaN

So you mean we should either have a "list" which will not show the switcher on non-translated pages, or a "dropdown" menu on all of our pages no matter that page has a translation or not??
That's not okay as the plugin should work with dropdown option too.

March 4, 2019 at 2:32 pm #3269314

Riffaz
Supporter

Languages: English (English )

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

Hi,

For now there is no such option yet.
So I suggested the easiest way that you can go with without touching the code and effort of time.

Anyhow, if you do not like the suggestion still you can modify / create the language switcher as you want.
You can create custom language switcher: https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/
It requires some PHP knowledge.
Since it's a custom work this is out of support scope as well.
In this case, you can consider : https://wpml.org/contractors/

Regards,

March 5, 2019 at 7:26 am #3271857

ranaN

As we want to show the language switcher only with 'dropdown' style, so the solution won't be useful for us. Thanks.

March 5, 2019 at 7:34 am #3271864

Riffaz
Supporter

Languages: English (English )

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

ok, then you can go with custom language switcher as I suggested already.
And, close this ticket.

March 5, 2019 at 7:46 am #3271916

ranaN

-