How to Add Multilingual Support to WordPress with Polylang (Full Tutorial)

Adding multi-language support to your website is a great way to enhance your user experience and expand your market.Polylang is WordPress Polylang is one of the most popular multi-language plugins in WordPress, providing powerful and flexible language management features and supporting free use. In this article, we will teach you how to add multilingual support to WordPress via Polylang.

Image [1] - How to Add Multilingual Support to WordPress with Polylang

One,Why Polylang?

Polylang provides a relatively lightweight solution to help users easily manage multilingual content while taking into account site performance. Compared to plugins such as WPML and TranslatePress, Polylang is more suitable for users who like tomanual translationIt is a great tool for people who want to control their content. It supports language switching for articles, pages, categories, menus, media and more, with SEO plugins like Yoast SEO It is also very user friendly.

Polylang operation steps

Step 1: Install and activate the Polylang plugin

Go to WordPress backend, click "Plugins > Install Plugin", and type "Polylang" in the search box. After you find the plugin, click "Install", then "Activate", the system will automatically guide you to the basic setup wizard.

Step 2: Add language and set default language

In the Setup Wizard, you can choose to add the languages supported by the site, such as Chinese, English, Japanese and so on. It is recommended to choose 2-3 common languages according to the target user group to avoid over expansion. When adding languages, the system will automatically generate the corresponding language code and region information for each language. You can also set a default language, usually the one with the most current content (e.g. Chinese).

Image [2] - How to Add Multilingual Support to WordPress with Polylang

Step 3: Translate the article and page content

After installing and setting the language, a "+" button will appear on your articles and pages, click on it to create a multi-language version of that article. For example, if you already have an article in Chinese, click the "+" button next to English to add its English version. Each article is a standalone piece of content and you have full control over translating the title, body, images and SEO metadata.

Step 4: Translate Categories, Tags and Menus

A multilingual website requires translations of articles, as well as translations of categories, tags and menu content. In the backend "Articles > Categories", you can add translations for each category in the corresponding language. Similarly, in "Appearance > Menu", you can set up separate menus for different languages, which can be automatically recognized and switched by the Polylang plugin.

Image [3] - How to Add Multilingual Support to WordPress with Polylang

Step 5: Add a language switcher

To enable visitors to switch languages, you need to add a language switcher button on the frontend. In "Appearance > Widgets", drag and drop the "Language Switcher" to the sidebar or footer, or you can add a language switcher link in the menu.Polylang provides various ways to display the language switcher, such as text, flag icon, dropdown menu, etc., which can be customized according to the design of your website. Polylang offers a variety of display methods, such as text, flag icons, drop-down menus, etc., which can be customized according to your website design.

Image [4] - How to Add Multilingual Support to WordPress with Polylang

Step 6: Optimize SEO and URL Structure

Polylang supports the generation of separate URL structures for each language, for example /en/,/fr/,/zh/ Prefixes are good for search engine indexing. It is recommended to enable "Use different URLs for different languages" option in the settings, and combine with Yoast SEO plugin to configure meta information, such as title, description, keywords and so on. Make sure each language version has a corresponding sitemap for search engine indexing.

Step 7: Deal with compatibility issues with other plugins

Polylang is compatible with most themes and plugins, but using a plugin like Elementor maybe WooCommerce In WooCommerce, for example, each product needs to be translated individually and configured with information such as stock and price. For example, in WooCommerce, each product needs to be translated individually and configured with information such as inventory, price, etc. Static strings in themes can be handled by the "String Translation" feature of Loco Translate or Polylang Pro (Pro version, fees apply).

Image [5] - How to Add Multilingual Support to WordPress with Polylang

Three,Frequently Asked Questions and Solutions

  1. Language switcher not displaying? Please make sure that it has been added to the menu or widget area and check if the theme supports output from that area.
  2. Translated content not valid? Ensure that each language version of the page is published and not in draft status.
  3. Cache plugin causing switching anomalies? If you are using W3 Total Cache or WP Super Cache, it is recommended that you add the following to theCache Settingsexclude the language parameter or use a different cache directory.

concluding remarks

Polylang is a full-featured and easy-to-use multilingual solution that doesn't rely on external translation APIs and gives users more control over their content. By properly configuring languages, translating content, and optimizing SEO, you can quickly build a WordPress website for global users.


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
This article was written by Zhong
THE END
If you like it, support it.
kudos95 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments