How does TranslatePress set up different menus for different languages?

In a multilingual website, menus are not only responsible for navigation, but also have a direct impact on the user experience. The use of TranslatePress When creating a multi-language WordPress website, you may encounter a problem: all languages share the same menu and you can't switch to display different content depending on the language. This can look unprofessional when dealing with different countries or markets. In this article, we'll show you how to create a menu in TranslatePress forExclusive menu for each language, making the site truly localized for navigation.

Image[1]-TranslatePress How to set different menus for different languages?

I. Overview of the problem: Menu content cannot be switched with the language

By default, theWordPress The menu structure is uniform, and without multi-language configuration, the user will see the menu content in the original language (usually English) no matter which language they switch to. This can lead to:

  • Users see navigation text that is inconsistent with the language;
  • The link jumps to the wrong language page;
  • Impact Multilingualism SEO Effect.

This problem is solved with the help of TranslatePress's menu translation feature or conditional display menu featureThe

Solution 1: Use the TranslatePress menu translation function (suitable for consistent content, different text only)

The steps are as follows:

  • Go to the front page and click on the TranslatePress translation button (or "Translate Page" in the top toolbar).
Image [2]-TranslatePress How to set different menus for different languages?
  • Click on the text of menu items in the website (e.g. About, Services)
Image [3]-TranslatePress How to set different menus for different languages?
  • In the Translations panel on the left, fill in the translation for each language.
  • save (a file etc) (computing)
Image [4]-TranslatePress How to set different menus for different languages?

✅ For: all languages with the same structure, only the menu item text needs to be translated.

Solution 2: Create separate menus for different languages (suitable for different menu contents as well)

If you want to display different menu items in different languages, e.g. certain links are not displayed in some languages, different markets have different category navigation, etc., you can use the WordPress menu + TranslatePress "Conditional menu plug-in" or "content block" functionality Realization.

Method 1: Use Conditional Menus plug-in (recommended)

  • Install and enable the plugin Conditional Menus
Image [5]-TranslatePress How to set different menus for different languages?
  • Go to Backstage → Appearance → Menus and create menus for each language.
Image [6] - How does TranslatePress have different menus for different languages?
  • Go to Backstage → Appearance → Customize
Image [7] - How does TranslatePress have different menus for different languages?
  • Setting the display conditions for menus in the menu module to the current language
Image [8]-TranslatePress How to set different menus for different languages?
Image [9]-TranslatePress How to set different menus for different languages?

Note: TranslatePress will switch the language attribute according to the user's current language, Conditional Menus can recognize and display the corresponding menu.

Method 2: Using TranslatePress Pro + Content Blocks + Display Conditions

  • Create multiple menu template content blocks (e.g., English menu block, French menu block)
  • Place a different navigation structure in each menu content block
  • Set the display condition of each block to the corresponding language

This method requires TranslatePress Pro with the Blocksy,Elementor maybe Gutenberg of the content block support.

IV. Best practice recommendations

  • If you only need to translate the menu text, you prefer to use TranslatePress' visual translation;
  • If the menu structure is different in each language, it is recommended to match the Conditional Menus Plugin.;
  • Each language creates a complete set of menus with corresponding links (using the language subdirectory structure);
  • The links in the menu should point to the page in the correct language version, e.g. /en/about-us,/fr/a-propos.;
  • For SEO and user experience, it is recommended to enable TranslatePress' SEO Pack respond in singing stand alone URL framework Function.
Image [10]-TranslatePress How to set different menus for different languages?

V. Summary

TranslatePress There is no built-in multi-language menu management interface, through its built-in text translation function and third-party plug-ins with the effect of displaying different menus in different languages can be easily realized. Choosing the right method can enhance website professionalism and user experience.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
Author: linxiulian
THE END
If you like it, support it.
kudos911 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments