Skip to content Skip to sidebar

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

Problem:
The client was able to create a menu in the original language that appears on every language version of the site. However, when creating a new menu with new pages, it only appeared in the original language and not in other languages. The client was also unsure about the process of translating 'No translated' menu items and whether they needed to sync menus before translating them in the string translation section.
Solution:
We advised the client that they need to synchronize the menu first before translating 'No translated' items through the string translation page. This step is necessary to ensure that the new menu and its items appear across all language versions of the site and are available for translation in the string translation section.

If this solution doesn't seem relevant to your issue, please feel free to open a new support ticket with us.

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

Last updated by Marcel 1 year, 8 months ago.

Assisted by: Marcel.

Author Posts
November 28, 2023 at 1:57 pm #14940497

draconM

Hello, I finally found a way myself by modifying the database and setting all the attributes to the original language.

I need an assistant on something else though : I've created a menu in original language and it appears on every languages, which is what I want.

I've decided to create another one with new pages but it only show on original language front office, not the other. Any idea on that ?

I cant create access for you instead of setting maintenance mode off, let me know.
Thanks

November 28, 2023 at 1:59 pm #14940539

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi,

can you please post me the exact names of the menus?

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Best Regards
Marcel

November 29, 2023 at 10:20 am #14948965

draconM

Hello and thank you for your answer. I kinda figured out why since I asked, but I would like to know if I could do something. If not, I'll give you access, if yes that could help others.

Let me explain :
- I've created a page (lets call it "My Page") in original language, english (EN).
- I've created a menu (EN) with this page in. Not custom link, real page.
- The page appears in the menu on the original language site, but not on the 2nd language YET, when I'm on the page (hidden link) I can click on the flag to go to 2nd language and it sends me to the 2nd language version of the page (ie: hidden link even though I didn't create it, which is normal since I've set wpml to show og version when translated one doesn't exist, which works fine as intended).
- To display the page in the 2nd language, I have to click on "Translation : + French" in the menu panel BUT to do so, I have to create french version of the page to be able to select it and add it in the menu (if not, it doesn't appear in the Pages panel in the Menu page).

My question is : since I can check "display original version of pages/posts/etc.. if not translated", why do I have to create a menu in other language to display these pages ? can I display og pages in the menu when there is no translation of them (and make sure they use the current language url like the flag does) ?

I think this is the setting (in the attachment) but I'm not sure, can you confirm this ?

Thank you !

Capture d’écran 2023-11-29 à 11.20.06.png
November 29, 2023 at 5:24 pm #14954503

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi,

you can also create a fallback for the menus if you configure it, but I would not recommend it. The menu entry will need the page endpoint to load the specific ID.

Best Regards
Marcel

November 30, 2023 at 10:17 am #14960607

draconM

Hi, I don't understand your answer.
I never created the french version of "My page", yet, it is available when I'm on the original version of it (hidden link) and click on the french flag that directs me to the "french" version (hidden link – see the /fr/ – which displays the content of the original version since I've set wpml to display original versions when translated one doesn't exist).

The menu though, doesn't display link to "french" pages since they don't exist. If I click on the item in my previous attachment's message, would it show the link even though the page doesn't exist (like the flag does) with the /fr/ added to the url ?

Thanks

December 1, 2023 at 4:49 pm #14974763

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi,

I never created the french version of "My page", yet, it is available when I'm on the original version of it (hidden link) and click on the french flag that directs me to the "french" version (hidden link – see the /fr/ – which displays the content of the original version since I've set wpml to display original versions when translated one doesn't exist).

Yes, it's this happens because of the language fallback, as you correctly summarized.

Please see https://wpml.org/documentation/getting-started-guide/translating-menus/.

For all of the following options, your secondary language menu will only display translated items.

As you don't have a created menu for French, it shows as you described.

Please let me know if something still needs to be clarified. It might be easier to show you this on a specific example on a staging.

Best Regards
Marcel

December 5, 2023 at 8:31 am #14993815

draconM

Oh ok, sorry I did not understand this at first because option 2 needs me to create the french versions of the pages at first (to be able to select them from the Page panel) and option 3 force me to translate all menus even if I want to translate just one..

Anyway, I'll try this, just one question though. In the example I send, the "No translated" items will have to be translated trough the string translation page, right ?

And if yes, Do I have to sync before translating them ? Because I don't see my Footer menu in the Domain list in the string translation section yet.

Thank you !

par défaut 2023-12-05 à 09.28.57.png
December 5, 2023 at 11:13 am #14995947

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi,

yes exactly. You need to sync the menu first.

Best Regards
Marcel