⌘K

Using Polylang

Last updated

What is Polylang?

Polylang is a multilingual plugin that allows you to create content in multiple languages. It works perfectly with PestAnnihilate’s custom post types.

Installation

Step 1: Install Polylang

Dashboard β†’ Plugins β†’ Add New
Search for "Polylang"
Install and Activate


Step 2: Run Setup Wizard

Dashboard β†’ Languages β†’ Setup Wizard

Basic Polylang Configuration

Step 1: Choose Languages

Step 2: Activate Languages

  1. Polylang will scan your content

  2. Choose which content to duplicate or translate

  3. Finalize setup

Translating Content with Polylang

Translating Pages

Step 1: Create Original Page

  1. Create page in default language (e.g., English)

  2. Add content, images, Elementor elements

  3. Publish page

Step 2: Add Translation

Pages β†’ All Pages
Hover over your page β†’ Click "Add translation" (+ icon)

Step 3: Translate Content

Edit the page with Elementor and Translate: Content β†’ In the chosen Language

Translating Custom Post Types

PestAnnihilate’s custom post types (Services, Team, Pests, Portfolio) are fully Polylang compatible.

Step 1: Enable Translation

Dashboard β†’ Languages β†’ Settings

Custom Post Types section:
β˜‘ Services
β˜‘ Team
β˜‘ Pests
β˜‘ Portfolio

Step 2: Translate Service Example

Services β†’ All Services
Hover over "Bed Bugs Control" β†’ Click "Add translation"

Translate:
– Title: “ContrΓ΄le des termites”
– Description: French version
– Service meta fields (price, duration, etc.)
– Featured image (optional)

Step 3: Connect Translations

Polylang automatically connects:

  • Original: “Termite Control” (English)

  • Translation: “ContrΓ΄le des termites” (French)

  • Translation: “TermitenbekΓ€mpfung” (German)

Translating Menus

Step 1: Create Language-Specific Menus

Step 2: Assign Menu Locations

Step 3: Language Switcher Menu Item

Add language switcher to menu:

  1. Edit menu

  2. Add “Language Switcher” item

  3. Configure display options

Customizer Strings Translation

To translate Customizer strings:

  1. Polylang β†’ String Translations

  2. Search for the string (e.g., “Blog & Articles”)

  3. Add translations for each language

 

Still stuck? How can we help? Get Help