Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client's website has two languages, English as the primary language and Finnish as the second language. The issue is that when clicking on product categories in the header on the Finnish version of the site, the language switcher does not appear, and users cannot switch between languages.

Solution:
First, we noticed that the link from the menu goes to a non-existing category page, which is why the language switcher was not appearing. The correct link should use the 'tuote-osasto' slug instead of 'category'.

We advised the client to:
1. Go to the Finnish menu and adjust the URLs manually.
2. If it's a regular WordPress menu, edit it from Appearance → Menus, and select the second language next to the pencil icon. For more details, see our documentation on translating menus.

Additionally, we ran WPML > Menu Sync, and it resolved the issue. We also suggested that the client manually adjust the Finnish category names to be shorter if they are too long and causing layout issues.

If this solution does not apply to your situation because it might be outdated or not relevant to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you need further assistance, please contact us in the WPML support forum.

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 5 replies, has 3 voices.

Last updated by Dražen 1 year, 4 months ago.

Assisted by: Dražen.

Author Posts
February 14, 2024 at 9:13 am #15300645

omidh-2

My website has to languages: Eng as a primary language and Finn as a second language. and also I have the categories of my products, one in the header, and one in the middle of the page. When I click on the categories of products in the middle of the page, everything is fine, but when I click on the categories of products that are in the header(in FINN), then the page of that product which is opened, it has no drop-down menu of language, and users can not switch between languages. It has only the Finn language. I have sent this issue once, but I didn't receive a good response, please help me ASAP since my deadline is approaching. thank you.

mmmm.PNG
February 14, 2024 at 9:30 am #15300695

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

I have checked and the link from the menu goes to the nonexisting category page, so that is why you do not get any language switcher.

It goes to: hidden link while it should go to: hidden link. Note the difference in category slug.

You need to go to the FI menu and adjust the URLs manually, I am not sure if this regular WP menu, but if yes then you can easily adjust and edit it how you wish from Appearance → Menus > Choose your second language next to pencil icon

- https://wpml.org/documentation/getting-started-guide/translating-menus/#fully-custom-create-menus-manually

Let us know how it goes.

Regards,
Drazen

February 14, 2024 at 9:42 am #15300920

omidh-2

Hi, I couldn't fix it, is it possible to give you access so that you fix it? that explanations were not enough for me fix it, since am amateur .

February 14, 2024 at 12:45 pm #15302209

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Let me set up a private reply to get credentials from you so that we can take a closer look.

You may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

February 14, 2024 at 7:49 pm #15304291

omidh-2

Hi. There is no changes in my website, is there still any problem? am waiting for you. I also pasted you the info of my website to fix this problem. many thanks, waiting to hear good news from u

February 15, 2024 at 9:16 am #15305631

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I checked and run WPML > Menu Sync and it works fine now.

You can further edit FI menu from the next link: hidden link

Since your FI category names a bit longer menu goes to 2nd row, I suggest manually adjusting your 2nd language category names to a bit shorter.

Let me know if any further questions.

Regards,
Drazen

February 15, 2024 at 4:24 pm #15308601

omidh-2

thank you. it is solved. if i had any problem, I will reach you out. regards