Setting up a Multilingual Site with Polylang

533

Installing Polylang

  1. Download and install Polylang activate it.
  2. Go to  Languages > Languages to add your desired languages
  3. Select your desired language from drop-down below “Add new Language”Add-new-language
  4. After you finish adding the languages, Go to Languages > String Translations.
  5. And make any necessary changes you want. For example, to Translate the Frontpage Slider content, translate the field that says static_img_text_id
  6. After making your changes click on “Save Changes”

 

Setting up Multi Language Menu

After installing Polylang, you need to assign the menu for the default language and create new menus for the languages you’ve just added.

  1. Go to Appearance -> Menus (You’ll find that additional theme locations are added per language.)
  2. Create new menu for second language and assign
  3. If you want you can add a language switcher, so the users can toggle between languages.Menu---Language-Switcher
  4. Check the box beside “Language Switcher” from the left Pane and add it to both of the menu.
  5. Click on “Save Menu”

 

Adding Multilingual Content

Post & Page

Adding content in different languages is easy in Polylang. Let’s get familiar with the process by creating a new page.

  1. Go to Pages and select a page
  2. On the edit screen, you will notice the new languages meta box.Language-Metabox
  3. Your default language content will be automatically be selected
  4. To add content on another language Just click on the + icon (add new) and add in your multilingual content.
  5. Click on Publish

 

Widget

  1. Go to Appearance -> Customize -> Widgets or Frontpage -> Frontpage Widgets
  2. Click on a widget
  3. At the bottom you’ll find a “Language Switcher” drop-downWidget-Language-Switcher
  4. Select your language and add content
  5. Click on “Save & Publish

 

Further Readings:

  1. Polylang Documentation
  2. Still lost with polylang multi languages
  3. How to Easily Create a Multilingual WordPress Site
  4. Setting up a MultiLingual WordPress Site with Polylang