You can create language-specific navigation in the header to help your international visitors browse through the pages in their own languages. It helps you create multilingual menus that contain different menu items for different languages. It's useful when certain content is not translated in a specific language and you don't want it to appear in the menu for that language.
Learn more about how to create links to switch languages in the navigation.
Here’s how you create navigation for your multi-language website. For this example, we will create pages and navigation in English, German (DE), and French (FR).
Creating pages in respective languages
- Go to Website > Pages and click on the round + button.
- Enter the name of the new page, for example, Home - FR and make sure that Display in navigation option is not checked:
- Click Submit. The new page has been created.
- Repeat these steps to create all language-specific Home pages, such as /home-DE page in German. Learn more about customizing publish paths and Language code to your pages.
- Your Pages menu would look like this:
- Repeat these steps to create pages (for this example):
About - EN
About - FR
About - DE
Or use any other page titles and language codes according to your website plan. You can start filling these pages with new content blocks.
Make the navigation local
Before you start
Make sure that the Navigation option is checked in your Header Block settings.
- Go to the page where you want to create language-specific navigation.
- Hover your cursor over the existing navigation item and right-click:
- Click on the Convert to local element button.
Continue editing the navigation. All changes in navigation will only relate to this page.
Create a local navigation item
Here’s how to create a new language-specific navigation item:
- Go to your language-specific homepage (for this example, Home-FR) and hover your cursor over the navigation area to activate the menu:
- Click on the “stacked pile” icon to activate the Navigation settings menu:
- To add a new language-specific page to the navigation, click the round + button:
- In the Item Settings menu, choose the following options from drop-down lists:
Click action: Open page
Title: Replace Home-FR with Page d’accueil (Homepage in French)
- Click Submit. The link to your Home-FR homepage with a title Page d'accueil will appear in the navigation menu.
- Repeat these steps for your About-FR page.
Tip: Delete unnecessary links in navigation by clicking the “trash” Delete icon next to the link title in the list.
- Click Save and Publish.
- Repeat these steps to create language-specific navigation for each other page in German (e.g. About-FR etc) and other languages if you choose to add them.
Turning local navigation into the global navigation
If you decide to make the local navigation menu global, that is, to show it on all website pages, hover your cursor over the navigation, and right-click the area. Click the Revert to global element button:
The chosen navigation menu will replace local menus on all pages.