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.

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

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 3 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 9 months ago.

Assisted by: Bruno Kos.

Author Posts
August 3, 2023 at 10:48 am #14148651

jamesE-7

Soory, I selected the wrong website. I need help with hidden link

I ran the WP Menu Sync option on my website and I have accidentally caused all of my menu's to break. I would like to undo the menu sync and revert back to the original language so only the original language (English) version of the menu is shown on the whole website, regardless of what language you are looking at. Is this possible?

Alternatively, is it possible to duplicate the original English menu and apply it's same structure to all of the other language menus?

I have added custom CSS to specific menu items (such as '.menu-item-420 a:hover') so that various menu items are different colours. For this reason I would like to revert back to the original language version and possibly use strings or another form of translation to edit each menu item without causing it to have a new menu item ID. Is this possible?

The website is currently under construction. I can provide login details privately.

Many Thanks,
James

August 3, 2023 at 1:50 pm #14150069

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

You can delete the translated menus like this - this will basically undo the sync.

And then don't translate menus and it should preserve assigned CSS classes on translations, while if you don't translate them, IDs should also be the same as these are assigned to menu items and not based on page IDs (apart from page-item-ID, but others will remain the same).

Regards,
Bruno Kos

swich here and delete.jpg
August 3, 2023 at 3:26 pm #14150663

jamesE-7

That's amazing, thank you! I am have managed to restore the menu items back to their original state.

My client is populating the site has so far completed translations of the News (Habari) and Contact (Wasiliana) pages into Swahili. In the attached screenshot you can see how these menu items retain their custom underline colour which is perfect. However, if I am viewing the Swahili version of the website and I click on the News (Habari) or Contact (Wasiliana) page it takes me to the English version of the page.

Also, you can see in the second screenshot that I also have 'Custom Links' for About, Regions, and Themes that act as drop-down menus for normal pages. The pages within each drop-down correspond to the colour of the underline of the parent page above.

Please can I ask you for your recommended process to achieve the following:
1. Have the translated menu items appear in the same colour applied via CSS
2. Link the translated menu items to the translated pages
3. Translate the 'Custom Links' parent menu items
4. Have any pages that aren't yet translated display as links to their original English language and link to that original page

I'm unsure which of the Options outlined here (https://wpml.org/documentation/getting-started-guide/translating-menus/) is best for me. Please can you advise at it seems like a few different goals to achieve that require a good understanding of WPML?

Many Thanks!

Screenshot 2023-08-03 at 16.16.01.jpg
Screenshot 2023-08-03 at 16.11.27.jpg
August 4, 2023 at 6:27 am #14152895

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Custom links can be translated like this:
https://wpml.org/documentation/getting-started-guide/translating-menus/#translating-custom-links

For the untranslated menu items pointing to the original language it is not possible, but you can activate https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#using-the-default-language-as-a-fallback-for-untranslated-content for such post types and then these would point to fallbacks.

But if you're using custom links for translated pages, these would not get translated automatically - you need to translate these URLs in string translation as per above documentation.

The topic ‘[Closed] I ran 'WP Menus Sync' and would like to undo it and revert back’ is closed to new replies.