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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by henrikR-17 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
May 14, 2023 at 5:58 pm #13643607

henrikR-17

Hi!

I use WPML Blog and the theme Astra Pro.

I have a language switcher on the 'below header' (which is not shown on mobiles) and one on the 'off canvas menu' (which is only shown on mobiles).

The language switcher on the 'below header' shows all languages, also languages to which the current page/post is not translated.

The language switcher on the 'off canvas menu' only shows languages to which the current page/post is translated.

I cannot seem to find a way to configure any of them to do 'the opposite' of the current function. That's quite frustrating.

This is the link to my site:
hidden link

Do you need the debug information?

Henrik

May 15, 2023 at 6:40 am #13644679

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Henrik,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) I checked some pages on your site, and the two language switchers seem to be working correctly.
Would you please let me know how to check the issue? It would be great if you could share screenshots while reproducing the issue.

Please check our guide to know more about language switchers and how to configure them. (https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/)

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

May 15, 2023 at 9:51 am #13646691

henrikR-17

I found where to configure the Off-canvas menu to show all languages all the time. Just as the language switcher in the Below header.
So now at least they are configured in the same way...
But it would be nice to have a short explanatory text in front of the list of languages. For instance: "Overall languages of this site:"

May 15, 2023 at 9:58 am #13646753

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Henrik,

Thanks for your update. Would you please share a screenshot of the place you want this short explanatory text?

Best regards,
Osama

May 15, 2023 at 1:47 pm #13648553

henrikR-17

Just before the 3 flags in the header - see screen shot. And in the same place on the Off-Canvas menu (on mobile devices).

Screenshot website 2023-05-15.png
May 15, 2023 at 1:51 pm #13648633

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm afraid adding text in this place (on the front end) will require custom coding, which is out of our support scope.

Please check our custom language switcher guide to know more about custom language switcher code. (https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/)

Best regards,
Osama

May 15, 2023 at 2:02 pm #13648689

henrikR-17

OK. I understand.