Learn how to use WPML to translate different types of WordPress menus with diverse menu items.
By default, WPML automatically creates translations for menus that link to pages, posts, products, and categories. All you need to do is translate the content the menu links to and WPML will handle the rest.
If your menus includes custom links, or you want to create different menus in each language, you need to use a different translation method.
Translating Menus That Appear Different in Each Language
If you want to have menus with different structure, items, or custom navigation labels in each language, you need to manually create menus per language.
To manually create menus per language:
- Go to Appearance → Menus.
- Click the language link you want to create a menu for.
- Name your new menu and click Create Menu.
- Finally, add menu items and save.
Your languages will now display different menus on your website.
Translating Menus Built Using Site Editor
To translate menus built using the Site Editor:
- Go to WPML → Translation Management.
- Select the template with the Navigation block, and the menu you want to translate.
- Choose a translation method and Translate.
Translating Menus with Custom Links
The following method is for advanced users. To translate custom links using an easier method, use the manual translation option previously covered.
To translate menus with custom links:
- Go to WPML → WP Menus Sync and click Sync.
- Select your custom links and click Apply changes.
- Next, click the link at the bottom of the page. This will open String Translation where you can translate the custom links you just synced.
- On String Translation, enter the translations for your custom link label and URL.
- Finally, return to WPML → WP Menus Sync and run the sync again.
Your custom links will now appear in your translated menus.