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 dennisv-9 1 year, 7 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 16, 2023 at 10:37 pm #13482667

dennisv-9

I am trying to:
edit the menu to put in the flags
Link to a page where the issue can be seen:
all

I expected to see:
menu option not greyed out.

Instead, I got:
The button is disabled because there are no menus in the site. Add a menu and you can later enable a language switcher in it.

Schermafbeelding 2023-04-17 003644.jpg
April 17, 2023 at 2:08 am #13483137

dennisv-9

Maybe this is because redis cache?
and next time please put al the things you changed back if there was no improvement,remember this is a live site to large to simple copy. over 27gb

April 18, 2023 at 6:40 am #13492809

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for reaching out to us. I will try my best to assist you in this matter.

I understood the issue you're having while creating a Language Switcher. In order to add a language Switcher to the Menu, you need to create a menu for your site from the Appearance > Menus page. Otherwise, the option to create the Menu language switcher will appear disabled.

- More information on creating a Menu language switcher can be found here: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#where-to-display-language-switcher

If you have created the Menu already from the Appearance > Menus section and still the Menu language switcher is not getting enabled, then you should check by clearing the caches. If you are using the Redis Object cache and other caching plugins on your site, then kindly clear the caches and check if that fixes the issue.

Additionally, if you want, you can create a custom language switcher from `WPML > Languages > Custom Language Switcher` and add that language switcher to the menu using Shortcode. Kindly check the documentation below to get a clear understanding.

- https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#custom-locations

Let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best Regards,
Prosenjit

April 18, 2023 at 7:28 pm #13499115

dennisv-9

i did all that before, what happens is that it all works fine but then withour any reason and even in test fase with plugins of or even while i am in the settings screen of wpml i save and refresh then there gone? i put them in again and save there allright, but say i do a translate links check of build a page.i go the the page frontside, everything looks ok. but when i refresh again (browser) and look at the menu the flags are gone, so i go back to wpml menu settings and giver the error you cannot add wpml to menu,create one first. so there gone.

i do refresh or log of or whateven, there visable again but without the wpml flags so i do it all again then there there, REPEAT

Also if i go to hidden link German translated pages and i click on a page its only giving the header and not the post, in egmondonline.nl/en it works standard egmondonline.nl (dutch) works also.

so for instance:
BAD German page
hidden link

good Dutch
hidden link

Good UK:
hidden link

the first one is empty,
if i did something wrong the /EN would also be broken i think

please advise.

April 19, 2023 at 1:11 pm #13504935

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,

1) Thanks for sharing more details regarding the issue with the language switcher. From the information, It seems caching is interfering with the Language switcher and preventing it to appear in the Frontend.

Would you please try disabling the caching for the Language Switcher template?
- Navigate to WPML > Support > Troubleshooting(link)
- On the Advance Setting section, you'll find a button named "Disable cache for language switcher templates". Click on that Button.

I hope it will help to solve the issue.

2) Regarding the other issue that you have mentioned, it seems that some elements haven't been translated into the German language yet. Would you please open that page in the default editor and check if the German translation is completed or not? If it is completed, then you'll see a Pencil Icon beside the German. Otherwise, you'll notice Update or Gear Icon. Please check this screenshot(hidden link) for a better understanding.

It is also suggested to clear the caches from the site after making the changes. Hope it will help.

Please note that to maintain clarity and organization, it is important to keep discussions focused on one issue per thread. Therefore, I will focus on one problem, and you may indicate which issue requires assistance in this particular thread(1 & 2 included.). If you need assistance with other issues, I can create a new thread to address them. I hope you can understand the matter.

Looking forward to your response.

Best Regards,
Prosenjit

April 20, 2023 at 2:33 pm #13512367

dennisv-9

it was disabled but i enable/disable it/ also did all the other ones..