Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
13:00 – 17:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 11 replies, has 2 voices.

Last updated by Eran Helzer 1 year, 11 months ago.

Assisted by: Eran Helzer.

Author Posts
July 22, 2023 at 9:43 am #14083041

tannov

OK, thanks, i activated it again.
Still an (new) issue with the main menu, it stays at default language when changing to /en/
at: hidden link

July 22, 2023 at 9:57 am #14083053

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi again,

I took a look, and it looks like the menus are not properly synced.
Please go to WPML -> WP Menus Sync and complete the process.
Make sure to follow our documentation here:
https://wpml.org/documentation/getting-started-guide/translating-menus/

If after the menus are fully synced there are still issue or you need any help following our documentation, please don't hesitate to reply here.

July 22, 2023 at 10:33 am #14083139

tannov

Hello, yes we synced , but it's telling item is paced on another place, it look like this (see attachment)

Schermafbeelding 2023-07-22 om 12.32.39.png
July 22, 2023 at 10:41 am #14083177

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Yes I see.

If you click "Synch", it will create a list of actions to do that will synchronize the menus.
Please click "Synch", then select all of the changes and click "Apply changes".

Without fully syncing the two menus, we can't know if there is another issue, so let's first do that and proceed from there.

July 22, 2023 at 12:04 pm #14083239

tannov

Hello, We did dync it and applied changes several times, but still no english menu

July 22, 2023 at 12:06 pm #14083241

tannov

Please see attachment

Schermafbeelding 2023-07-22 om 14.05.37.png
July 23, 2023 at 10:01 am #14084283

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

I understand.

I would like to take a look, try to understand what the issue is.
I already have log in credentials from the previous ticket.

I may need to:
- Deactivate plugins
- Switch themes
- Change settings
If you do not want me to do any of these, please say so.

I will wait for your confirmation that you have a working backup before I proceed.

July 23, 2023 at 10:14 am #14084391

tannov

Hello, yes, i appreciate your help. But can you do it in the copy: hidden link

July 23, 2023 at 12:16 pm #14084593

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Update.

I managed to reduce the issue to a specific shortcode, that when added to pages causes the menu to display in Dutch. Please take a look at an example here:
hidden link

I also duplicated the home page and removed the shortcode, you can see that the menu is correct:
hidden link

The shortcode is:

[frontpage_news widget="1544" name="Home"]

I see that it is coming from a plugin named "WP Latest Posts". I checked in our recommended, officially compatible plugins directory and it seems not to be there:
https://wpml.org/plugin/?wpv_view_count=120064&wpv-plugin-functionality=0&wpv_post_search=WP+Latest+Posts&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search

Other than that, other pages had the correct English menu.

July 24, 2023 at 7:30 am #14086429

tannov

Ok, thanks disable this shortcode in en site works, but is there a work around, we want to display it the same ad the default languange.

July 24, 2023 at 7:36 am #14086479
tannov

And, also a new problem, some pages are accessable after login, but in different language, not shown, you say at your website:

This way, users can login or register for your site in their preferred language.

WordPress offers its own language switcher for login and registration pages as of WordPress 5.9. However, this only allows site users to view the login and registration pages in the language they choose. When they log in, they see the site admin area in the default language.

With WPML, you can translate your login and registration pages and seamlessly direct your site users to the admin area in the language they chose.

To do so, you first need to enable the translation of those pages, then translate the pages as normal.

If your site uses nginx, there are some extra considerations, explained below.

Enabling the Translation of Login and Registration Pages
Login and registration pages are usually accessed by going to URLs similar to these:

Registration: example.com/wp-login.php?action=register
Registering in a secondary language: example.com/fr/wp-login.php?action=register
Logging in: example.com/wp-login.php
Logging in in a secondary language: example.com/fr/wp-login.php
To translate these login and registration pages, go to WPML → Settings and scroll to Login and registration pages. Check the box to allow translations.

------------
But the problem is we do not have nginx, we have VPS with ubuntu.
Is there another way to fix this problem?

New threads created by Eran Helzer and linked to this one are listed below:

https://wpml.org/forums/topic/redirect-to-correct-language-after-log-in-registration-page/

July 24, 2023 at 7:39 am #14086489

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

There may be a workaround.

In order to be able to test this further, let's replicate it minimally in a test site.
Please use this site to make a minimal reproduction of the issue.
Do not import your entire site.
Create a menu, a post or two, and add the frontpage_news shortcode.
hidden link

Please update me when you are done and we will provide it to the 2nd tier.

About the second issue, I split to a separate ticket. Me or one of my colleagues will reply to you there.

The topic ‘[Closed] Main menu not working properly in secondary language’ is closed to new replies.