SlideShare a Scribd company logo
How to Create a Multilingual WordPress Site with Polylang
mprstudio.com/create-multilingual-wordpress-site-with-polylang/
Having a multilingual WordPress website which is optimized for SEO can really help boost your traffic. It naturally
expands your site’s audience by showing up in search results for multiple languages, some of which have much less
competition than English-language results.
There are a number of ways to create a multilingual site, and you can even integrate Google Translate into your site
if you really want – it’s the worst way to translate your site, so please don’t do this. While Google provides a plethora
of outstanding products, Google Translate leaves a lot to be desired.
Machine translations will NEVER be as good as those done by humans, period. Computers do a pretty good job
with simple terms and sentences, but fail big-time when it comes to interpreting everything accurately.
In this post, I will teach you how to use Polylang in conjunction with Yoast SEO to create an optimized multilingual
WordPress website. I strongly suggest hiring professional translators to create the other language versions of your
site (unless you’re like Pope John Paul II and speak a bunch of languages).
Please keep in mind that you will need proper translations for all posts, pages, media items, categories, tags,
custom post types, custom taxonomies, widgets, navigation menus and URLs. Your site may not use all of the
previously-mentioned items, but I included them anyway.
Table of Contents
1. Installing Polylang
2. Setting the default language
1/12
3. Strings translations
4. Translating widgets
5. Settings
6. Creating translations for pages, posts, categories and tags
7. Language switcher
8. Optimizing your multilingual site with Yoast SEO
9. Conclusion
Do your site visitors a favor, and use quality, human translations. It has such a huge impact on the quality and
readability of your site and its content, and your readers will greatly appreciate it.
I think it’s better to ONLY have your site in one language than to use inaccurate machine translations.
Installing Polylang
The first step is to install and activate the Polylang plugin. Make sure you are using WordPress 4.0 or later before
you perform the installation. You should always keep WordPress up to date, but that’s beside the point.
If you were using any other multilingual plugins, make sure you deactivate them before you activate Polylang. If you
don’t, things can go awry.
Head over to Plugins in your WordPress Dashboard, then click Add New. Search for Polylang and click Install
Now. Next, go to the settings page and add all the languages you plan to use on your site.
The Polylang languages area in the WordPress dashboard. Add all the languages you want here, and mark the default language by hovering
underneath and then clicking in the star column in the language row you want to select.
Once you select a language, it will automatically fill in the following fields – Full name, Locale, Language code,
2/12
Text direction and Flag. The only one left empty is the Order field, where you can select the order in which the
languages will appear in the navigation menu. You will want to set your default language to Order 0, which will make
it the first language in your navigation menu.
Setting the default language
To set the default language, simply hover over the star in the language you want to choose, then click it when it turns
blue (see screenshot above).
Strings translations
Under Strings translations, you can set the translations for a wide variety of elements throughout your site,
including the following:
Basic WordPress items such as site title, tagline, date format and time format.
Any Widget items you’re using in a sidebar, footer or anywhere else on your site. The strings translations
gives you finite control over both the title and content of your widgets, letting you create versions for all of
your site’s different languages.
Yoast SEO items such as home (for breadcrumbs display throughout your site), sitename, excerpt, site
description (sitedesc), archives, 404 pages and more. With most of these, I leave them alone because by
default, they’re setup properly. When you have Yoast SEO configured well, you will optimize each page and
post directly in the Yoast SEO box.
Translating widgets
3/12
Polylang makes it easy to add widgets for all the languages on your site. When you add a new widget, it will be
shown for all languages by default. Once you save the widget, you can use Strings translations to create all the
translations for it.
In some cases, you may want to only display a particular widget in only one language. To do this, simply choose the
language from the dropdown in the widget.
There could be more strings translations to setup depending on the plugins you use on your site. For example, if you
are using a gallery plugin, you may want to set gallery names and photo captions in all languages other than the
default.
Settings
There are a couple items to configure under Languages > Settings. We’ll go over the ones that are important.
Please note, the settings I include below are simply those that I have used in the past. I did a little research and
looked at quality multilingual sites, then modeled the sites I created after them.
You may want to use different settings on your site based on site structure and whether you’re using subdomains,
among many other things.
URL modifications
Here, you can adjust the appearance of your site URLs. I recommend the settings that yield the simplest and
shortest URL structure.
Before you set these options, choose the proper Permalink configuration under Settings > Permalinks. Make sure
that Post name is selected and save your changes.
4/12
Back in the URL modifications, you will want to make sure the following are selected (with dot or check mark next to
them):
1. The language is set from the directory name in pretty permalinks.
2. Hide URL language information for the default language.
3. Remove /language/ in pretty permalinks (simple, shorter URLs are generally better).
4. The front page URL contains the language code instead of the page name or id.
Detect browser language
You want to click on Activate under Detect browser language. This ensures that when someone visits your site for
the first time, they are directed to the homepage in the language according to the language settings in his/her
browser. If the visitor’s browser language doesn’t match any of the languages on your site, the default language will
be used.
Please note that this options only works when the language is either chosen from the content, directory name in the
URL or from the subdomain. If you’re using multiple domains, you will need Polylang Pro to use this feature.
Media
The media module is activated by default, and serves the purpose of translating all the text associated with images
– title, alt text and description.
Translating the media item information for each language is a great way to help optimize your images for SEO, but
it’s up to you. If you don’t want to use it, simply deactivate it.
If you want to create translations for all of your media items, leave the media module activated. When you edit items
in your media library, you’ll be able edit the image info for your default language, and then add the translations for
other languages.
5/12
1. Select a language from the dropdown menu.
2. Enter media information, including Title (above image), Caption and Alternative Text (below the image).
You can also enter description, but I wouldn’t worry about it. Most themes don’t seem to show it anyway. Of
these three, the Alt text is definitely the most important for SEO.
3. Click the Update button to save your changes.
4. To add image info for the other languages, click the + symbol next to the language you want, and repeat steps
1-3. Make sure you click Update after all information is added for each language.
Creating translations for pages, posts, categories and tags
Become familiar with the + symbol because you will use it a lot to create translated content. In pages and posts, it is
in the Languages module under Translations in the upper right side of your screen (refer to screenshot).
6/12
To create languages variations for pages and posts, follow these simple steps:
1. Create a new page or post, complete with title and body content.
2. Click Publish.
3. While still in the page/post, click the + symbol next to the flag of the language you’d like to add.
4. Repeat steps 1 and 2 for the content in that language, and all others that you plan on using.
For Categories and Tags, the + symbol is in the row of the original category or tag.
To add language variations for categories and tags, do the following:
1. Create a new category or tag in the default language.
2. Click Add New Category or Add New Tag.
3. Then, click the + symbol under the corresponding flag for the other language/s you want add.
4. Repeat this process until you have all categories in every language you want to use on your site.
Once you’ve already created translations for all of your items, the + symbol will be a pencil icon instead. Click on it to
edit translated pages, posts, categories or tags for each language.
In the above graphic, the check mark (1) indicates that the page is in English, while the pencil next to it (2) lets you
7/12
easily edit the other language version (Polish in the graphic) of that page.
Language switcher
Most multilingual sites display flags or text that lets you switch between languages, and Polylang provides this
option. You can display it in menus, widgets and other areas.
Navigate to Appearance > Menus in the WordPress Dashboard and look for Language Switcher on the left-hand
side. If you don’t see it, expand the Screen Options area at the top and tick the box next to Language Switcher
(see screenshot above). Simply grab it and move it over to your menu.
In order to use the Language Switcher as a widget, head over to Appearance > Widgets, and then drag the module
over to the widget area on the right, where you want to display it.
Now, you can add a language switcher to any menu or widget on your site. Generally, it’s best to add it to the main
menus for each language you use.
If you’re comfortable editing theme files, you can even add the language switcher without using the widget. Simply
use the following template tag in your theme:
<ul><?php pll_the_languages();?>
</ul>
You can also choose to only show it for one language, but I’m not sure why you’d want to do that. I don’t remember
having ever seen one in a widget, but don’t let that stop you from trying it.
You can set the following language switcher options after you add it to your menu or widget:
Displays as a dropdown
Displays language names
Displays flags
Forces link to front page
Hides the current language
Hides languages with no translation
These options are useful, so make sure to configure them in a way that makes the most sense for your site.
8/12
With the multilingual sites I’ve created, I chose the following options:
I displayed the flags but not the language names – It looks better, and having both is overkill in my
opinion. People know what their own flag looks like so writing out the name is unnecessary.
I also hid the current language – If someone is already browsing the site in their preferred language,
there’s no reason to show it again in the menu.
Optimizing your multilingual site with Yoast SEO
After you set up your multilingual site, it’s important to make sure it’s optimized for Google.
To do this, you’ll be using Yoast SEO. It is a must-have plugin to help you properly configure all language versions of
your website, including:
Titles for both pages and posts – this is the single most important on-page SEO element
Meta descriptions – snippet that appears below the title in search engines. Create compelling copy here to
encourage searchers to click through to your result.
Permalinks – remove stop words from slugs, shortening and simplifying them.
We’ll go over all the important settings to make sure your site is primed for the search engines.
First, go to Plugins > Add new and search for Yoast SEO. Once you find it, click install, then activate.
After you set these elements in Yoast, you will use Strings translations to easily translate them.
Page/Post Titles and Meta Descriptions
9/12
By default, Yoast SEO automatically sets page and post titles based on your content using a variety of shortcodes.
It is much better to write custom SEO titles and meta descriptions for both pages and posts, and you can easily do
this within the Edit Post or Edit Page areas. You’ll find this below the body content area in the Yoast SEO module.
In order to set the post/page titles and meta descriptions, do the following:
1. Go down to Yoast SEO module and click on Edit Snippet.
2. Enter your desired page/post title in the SEO title area.
3. Add engaging copy to the Meta description box. Well-written meta descriptions encourage searchers to click
on your result and not someone else’s.
10/12
Yoast provides a colored bar which turns green when the length of both the SEO title and Meta description areas
are ideal. Make use of it, and try to create titles and meta descriptions with optimal lengths.
Advanced settings
In order to see some of the options in Yoast SEO, you must first enable the Advanced settings pages. To do this,
go to Dashboard > Features and make sure the slider is set to Enabled (see screenshot above).
Permalinks
Yoast lets you remove stop words from your site URLs, which helps simplify and shorten them. In the Clean up
permalinks section under Advanced > Permalinks, set the slider to Remove. Now, when you create a new page
11/12
or post, Yoast will automatically remove these unnecessary words from the slugs or permalinks (shown right below
the title at the top).
With the free version of Polylang, you have to use different URLs for all language versions of each page and post. In
their premium version, you can use the same URL across all languages. While this may seem like a nice feature, it is
not totally necessary in my opinion. I use the free version, and my URLs are different for each language.
Conclusion
Using Polylang in conjunction with Yoast SEO to create your very own optimized, multilingual WordPress site is a
great way to boost your site’s organic traffic by providing content in more than one language.
Do yourself a favor, and use quality translations for the languages used on your site. Don’t rely on Google Translate,
as machine translations are highly inaccurate and reflect poorly on your brand. If you want quality traffic, provide
quality content.
You may be surprised by the jump in website traffic from areas all over the world.
Are you struggling with making your site multilingual? Leave comments and questions below, and I’ll try to help you
(no guarantee that I can fix your problem).
If you found this post helpful, please share it and spread the word!
Want more like this? Sign up for my newsletter to receive helpful WordPress Tutorials, Tips and Tricks.
12/12

More Related Content

Similar to Make Your WordPress Site Multilingual with Polylang

Website Links Translate
Website Links TranslateWebsite Links Translate
Website Links Translate
Geminate Consultancy Services
 
Drupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization PresentationDrupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization Presentation
Mediacurrent
 
Does your website speak Chinese?
Does your website speak Chinese?Does your website speak Chinese?
Does your website speak Chinese?
Thomas Robbins
 
Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)
Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)
Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)
Eric Tiggeler
 
Multilingualism tutorial : rubedo cms
Multilingualism tutorial : rubedo cmsMultilingualism tutorial : rubedo cms
Multilingualism tutorial : rubedo cms
Rubedo, a WebTales solution
 
The ultimate list of website translation tools
The ultimate list of website translation toolsThe ultimate list of website translation tools
The ultimate list of website translation tools
Bablic Ltd
 
Multilingual content with WordPress
Multilingual content with WordPressMultilingual content with WordPress
Multilingual content with WordPress
Desaulniers-Simard
 
Advice for multilingual SEO. Part 1
Advice for multilingual SEO. Part 1Advice for multilingual SEO. Part 1
Advice for multilingual SEO. Part 1
808sonic2
 
Top 10 tips to translate your website2
Top 10 tips to translate your website2Top 10 tips to translate your website2
Top 10 tips to translate your website2
Cipherion Translations
 
Language translations in odoo
Language translations in odooLanguage translations in odoo
Language translations in odoo
PlanetOdoo
 
Manual for WordFinder 9 Professional, Mac
Manual for WordFinder 9 Professional, MacManual for WordFinder 9 Professional, Mac
Manual for WordFinder 9 Professional, Mac
WordFinder Software AB
 
Multilingual websites
Multilingual websitesMultilingual websites
Multilingual websites
CLS Communication
 
Manage odoo in your own language
Manage odoo in your own languageManage odoo in your own language
Manage odoo in your own language
Celine George
 
Chrome Extensions and Apps for educators
Chrome Extensions and Apps for educatorsChrome Extensions and Apps for educators
Chrome Extensions and Apps for educators
Sharon Neveu
 
Web development
Web developmentWeb development
Web development
RaziyaChoudhary
 
webdevelopment-210628031421.pdf
webdevelopment-210628031421.pdfwebdevelopment-210628031421.pdf
webdevelopment-210628031421.pdf
DakshPratapSingh1
 
Translation in Odoo 14
Translation in Odoo 14Translation in Odoo 14
Translation in Odoo 14
Celine George
 
Multilingual Drupal presentation from "Do it With Drupal"
Multilingual Drupal presentation from "Do it With Drupal"Multilingual Drupal presentation from "Do it With Drupal"
Multilingual Drupal presentation from "Do it With Drupal"
Gábor Hojtsy
 
Create a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi themeCreate a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi theme
Michelle Castillo
 
Multilingual WordPress With Polylang
Multilingual WordPress With PolylangMultilingual WordPress With Polylang
Multilingual WordPress With Polylang
Teemu Suoranta
 

Similar to Make Your WordPress Site Multilingual with Polylang (20)

Website Links Translate
Website Links TranslateWebsite Links Translate
Website Links Translate
 
Drupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization PresentationDrupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization Presentation
 
Does your website speak Chinese?
Does your website speak Chinese?Does your website speak Chinese?
Does your website speak Chinese?
 
Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)
Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)
Creating a multilingual site in Joomla 3 (Joomla 3 Beginner's Guide)
 
Multilingualism tutorial : rubedo cms
Multilingualism tutorial : rubedo cmsMultilingualism tutorial : rubedo cms
Multilingualism tutorial : rubedo cms
 
The ultimate list of website translation tools
The ultimate list of website translation toolsThe ultimate list of website translation tools
The ultimate list of website translation tools
 
Multilingual content with WordPress
Multilingual content with WordPressMultilingual content with WordPress
Multilingual content with WordPress
 
Advice for multilingual SEO. Part 1
Advice for multilingual SEO. Part 1Advice for multilingual SEO. Part 1
Advice for multilingual SEO. Part 1
 
Top 10 tips to translate your website2
Top 10 tips to translate your website2Top 10 tips to translate your website2
Top 10 tips to translate your website2
 
Language translations in odoo
Language translations in odooLanguage translations in odoo
Language translations in odoo
 
Manual for WordFinder 9 Professional, Mac
Manual for WordFinder 9 Professional, MacManual for WordFinder 9 Professional, Mac
Manual for WordFinder 9 Professional, Mac
 
Multilingual websites
Multilingual websitesMultilingual websites
Multilingual websites
 
Manage odoo in your own language
Manage odoo in your own languageManage odoo in your own language
Manage odoo in your own language
 
Chrome Extensions and Apps for educators
Chrome Extensions and Apps for educatorsChrome Extensions and Apps for educators
Chrome Extensions and Apps for educators
 
Web development
Web developmentWeb development
Web development
 
webdevelopment-210628031421.pdf
webdevelopment-210628031421.pdfwebdevelopment-210628031421.pdf
webdevelopment-210628031421.pdf
 
Translation in Odoo 14
Translation in Odoo 14Translation in Odoo 14
Translation in Odoo 14
 
Multilingual Drupal presentation from "Do it With Drupal"
Multilingual Drupal presentation from "Do it With Drupal"Multilingual Drupal presentation from "Do it With Drupal"
Multilingual Drupal presentation from "Do it With Drupal"
 
Create a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi themeCreate a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi theme
 
Multilingual WordPress With Polylang
Multilingual WordPress With PolylangMultilingual WordPress With Polylang
Multilingual WordPress With Polylang
 

More from Marshall Reyher

Improve WordPress Website Performance with a Content Delivery Network: Better...
Improve WordPress Website Performance with a Content Delivery Network: Better...Improve WordPress Website Performance with a Content Delivery Network: Better...
Improve WordPress Website Performance with a Content Delivery Network: Better...
Marshall Reyher
 
Creating a Membership Site in WordPress with WP-Members: A Step-by-Step Guide
Creating a Membership Site in WordPress with WP-Members: A Step-by-Step GuideCreating a Membership Site in WordPress with WP-Members: A Step-by-Step Guide
Creating a Membership Site in WordPress with WP-Members: A Step-by-Step Guide
Marshall Reyher
 
Adding Schema Markup (Structured Data) to WordPress – Free & Premium Plugins
Adding Schema Markup (Structured Data) to WordPress – Free & Premium PluginsAdding Schema Markup (Structured Data) to WordPress – Free & Premium Plugins
Adding Schema Markup (Structured Data) to WordPress – Free & Premium Plugins
Marshall Reyher
 
WordPress Maintenance: 14 Essential Tasks to Keep Your Site Optimized
WordPress Maintenance: 14 Essential Tasks to Keep Your Site OptimizedWordPress Maintenance: 14 Essential Tasks to Keep Your Site Optimized
WordPress Maintenance: 14 Essential Tasks to Keep Your Site Optimized
Marshall Reyher
 
How to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorialHow to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorial
Marshall Reyher
 
Make WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & CloudflareMake WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & Cloudflare
Marshall Reyher
 

More from Marshall Reyher (6)

Improve WordPress Website Performance with a Content Delivery Network: Better...
Improve WordPress Website Performance with a Content Delivery Network: Better...Improve WordPress Website Performance with a Content Delivery Network: Better...
Improve WordPress Website Performance with a Content Delivery Network: Better...
 
Creating a Membership Site in WordPress with WP-Members: A Step-by-Step Guide
Creating a Membership Site in WordPress with WP-Members: A Step-by-Step GuideCreating a Membership Site in WordPress with WP-Members: A Step-by-Step Guide
Creating a Membership Site in WordPress with WP-Members: A Step-by-Step Guide
 
Adding Schema Markup (Structured Data) to WordPress – Free & Premium Plugins
Adding Schema Markup (Structured Data) to WordPress – Free & Premium PluginsAdding Schema Markup (Structured Data) to WordPress – Free & Premium Plugins
Adding Schema Markup (Structured Data) to WordPress – Free & Premium Plugins
 
WordPress Maintenance: 14 Essential Tasks to Keep Your Site Optimized
WordPress Maintenance: 14 Essential Tasks to Keep Your Site OptimizedWordPress Maintenance: 14 Essential Tasks to Keep Your Site Optimized
WordPress Maintenance: 14 Essential Tasks to Keep Your Site Optimized
 
How to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorialHow to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorial
 
Make WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & CloudflareMake WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & Cloudflare
 

Recently uploaded

Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 

Recently uploaded (16)

Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 

Make Your WordPress Site Multilingual with Polylang

  • 1. How to Create a Multilingual WordPress Site with Polylang mprstudio.com/create-multilingual-wordpress-site-with-polylang/ Having a multilingual WordPress website which is optimized for SEO can really help boost your traffic. It naturally expands your site’s audience by showing up in search results for multiple languages, some of which have much less competition than English-language results. There are a number of ways to create a multilingual site, and you can even integrate Google Translate into your site if you really want – it’s the worst way to translate your site, so please don’t do this. While Google provides a plethora of outstanding products, Google Translate leaves a lot to be desired. Machine translations will NEVER be as good as those done by humans, period. Computers do a pretty good job with simple terms and sentences, but fail big-time when it comes to interpreting everything accurately. In this post, I will teach you how to use Polylang in conjunction with Yoast SEO to create an optimized multilingual WordPress website. I strongly suggest hiring professional translators to create the other language versions of your site (unless you’re like Pope John Paul II and speak a bunch of languages). Please keep in mind that you will need proper translations for all posts, pages, media items, categories, tags, custom post types, custom taxonomies, widgets, navigation menus and URLs. Your site may not use all of the previously-mentioned items, but I included them anyway. Table of Contents 1. Installing Polylang 2. Setting the default language 1/12
  • 2. 3. Strings translations 4. Translating widgets 5. Settings 6. Creating translations for pages, posts, categories and tags 7. Language switcher 8. Optimizing your multilingual site with Yoast SEO 9. Conclusion Do your site visitors a favor, and use quality, human translations. It has such a huge impact on the quality and readability of your site and its content, and your readers will greatly appreciate it. I think it’s better to ONLY have your site in one language than to use inaccurate machine translations. Installing Polylang The first step is to install and activate the Polylang plugin. Make sure you are using WordPress 4.0 or later before you perform the installation. You should always keep WordPress up to date, but that’s beside the point. If you were using any other multilingual plugins, make sure you deactivate them before you activate Polylang. If you don’t, things can go awry. Head over to Plugins in your WordPress Dashboard, then click Add New. Search for Polylang and click Install Now. Next, go to the settings page and add all the languages you plan to use on your site. The Polylang languages area in the WordPress dashboard. Add all the languages you want here, and mark the default language by hovering underneath and then clicking in the star column in the language row you want to select. Once you select a language, it will automatically fill in the following fields – Full name, Locale, Language code, 2/12
  • 3. Text direction and Flag. The only one left empty is the Order field, where you can select the order in which the languages will appear in the navigation menu. You will want to set your default language to Order 0, which will make it the first language in your navigation menu. Setting the default language To set the default language, simply hover over the star in the language you want to choose, then click it when it turns blue (see screenshot above). Strings translations Under Strings translations, you can set the translations for a wide variety of elements throughout your site, including the following: Basic WordPress items such as site title, tagline, date format and time format. Any Widget items you’re using in a sidebar, footer or anywhere else on your site. The strings translations gives you finite control over both the title and content of your widgets, letting you create versions for all of your site’s different languages. Yoast SEO items such as home (for breadcrumbs display throughout your site), sitename, excerpt, site description (sitedesc), archives, 404 pages and more. With most of these, I leave them alone because by default, they’re setup properly. When you have Yoast SEO configured well, you will optimize each page and post directly in the Yoast SEO box. Translating widgets 3/12
  • 4. Polylang makes it easy to add widgets for all the languages on your site. When you add a new widget, it will be shown for all languages by default. Once you save the widget, you can use Strings translations to create all the translations for it. In some cases, you may want to only display a particular widget in only one language. To do this, simply choose the language from the dropdown in the widget. There could be more strings translations to setup depending on the plugins you use on your site. For example, if you are using a gallery plugin, you may want to set gallery names and photo captions in all languages other than the default. Settings There are a couple items to configure under Languages > Settings. We’ll go over the ones that are important. Please note, the settings I include below are simply those that I have used in the past. I did a little research and looked at quality multilingual sites, then modeled the sites I created after them. You may want to use different settings on your site based on site structure and whether you’re using subdomains, among many other things. URL modifications Here, you can adjust the appearance of your site URLs. I recommend the settings that yield the simplest and shortest URL structure. Before you set these options, choose the proper Permalink configuration under Settings > Permalinks. Make sure that Post name is selected and save your changes. 4/12
  • 5. Back in the URL modifications, you will want to make sure the following are selected (with dot or check mark next to them): 1. The language is set from the directory name in pretty permalinks. 2. Hide URL language information for the default language. 3. Remove /language/ in pretty permalinks (simple, shorter URLs are generally better). 4. The front page URL contains the language code instead of the page name or id. Detect browser language You want to click on Activate under Detect browser language. This ensures that when someone visits your site for the first time, they are directed to the homepage in the language according to the language settings in his/her browser. If the visitor’s browser language doesn’t match any of the languages on your site, the default language will be used. Please note that this options only works when the language is either chosen from the content, directory name in the URL or from the subdomain. If you’re using multiple domains, you will need Polylang Pro to use this feature. Media The media module is activated by default, and serves the purpose of translating all the text associated with images – title, alt text and description. Translating the media item information for each language is a great way to help optimize your images for SEO, but it’s up to you. If you don’t want to use it, simply deactivate it. If you want to create translations for all of your media items, leave the media module activated. When you edit items in your media library, you’ll be able edit the image info for your default language, and then add the translations for other languages. 5/12
  • 6. 1. Select a language from the dropdown menu. 2. Enter media information, including Title (above image), Caption and Alternative Text (below the image). You can also enter description, but I wouldn’t worry about it. Most themes don’t seem to show it anyway. Of these three, the Alt text is definitely the most important for SEO. 3. Click the Update button to save your changes. 4. To add image info for the other languages, click the + symbol next to the language you want, and repeat steps 1-3. Make sure you click Update after all information is added for each language. Creating translations for pages, posts, categories and tags Become familiar with the + symbol because you will use it a lot to create translated content. In pages and posts, it is in the Languages module under Translations in the upper right side of your screen (refer to screenshot). 6/12
  • 7. To create languages variations for pages and posts, follow these simple steps: 1. Create a new page or post, complete with title and body content. 2. Click Publish. 3. While still in the page/post, click the + symbol next to the flag of the language you’d like to add. 4. Repeat steps 1 and 2 for the content in that language, and all others that you plan on using. For Categories and Tags, the + symbol is in the row of the original category or tag. To add language variations for categories and tags, do the following: 1. Create a new category or tag in the default language. 2. Click Add New Category or Add New Tag. 3. Then, click the + symbol under the corresponding flag for the other language/s you want add. 4. Repeat this process until you have all categories in every language you want to use on your site. Once you’ve already created translations for all of your items, the + symbol will be a pencil icon instead. Click on it to edit translated pages, posts, categories or tags for each language. In the above graphic, the check mark (1) indicates that the page is in English, while the pencil next to it (2) lets you 7/12
  • 8. easily edit the other language version (Polish in the graphic) of that page. Language switcher Most multilingual sites display flags or text that lets you switch between languages, and Polylang provides this option. You can display it in menus, widgets and other areas. Navigate to Appearance > Menus in the WordPress Dashboard and look for Language Switcher on the left-hand side. If you don’t see it, expand the Screen Options area at the top and tick the box next to Language Switcher (see screenshot above). Simply grab it and move it over to your menu. In order to use the Language Switcher as a widget, head over to Appearance > Widgets, and then drag the module over to the widget area on the right, where you want to display it. Now, you can add a language switcher to any menu or widget on your site. Generally, it’s best to add it to the main menus for each language you use. If you’re comfortable editing theme files, you can even add the language switcher without using the widget. Simply use the following template tag in your theme: <ul><?php pll_the_languages();?> </ul> You can also choose to only show it for one language, but I’m not sure why you’d want to do that. I don’t remember having ever seen one in a widget, but don’t let that stop you from trying it. You can set the following language switcher options after you add it to your menu or widget: Displays as a dropdown Displays language names Displays flags Forces link to front page Hides the current language Hides languages with no translation These options are useful, so make sure to configure them in a way that makes the most sense for your site. 8/12
  • 9. With the multilingual sites I’ve created, I chose the following options: I displayed the flags but not the language names – It looks better, and having both is overkill in my opinion. People know what their own flag looks like so writing out the name is unnecessary. I also hid the current language – If someone is already browsing the site in their preferred language, there’s no reason to show it again in the menu. Optimizing your multilingual site with Yoast SEO After you set up your multilingual site, it’s important to make sure it’s optimized for Google. To do this, you’ll be using Yoast SEO. It is a must-have plugin to help you properly configure all language versions of your website, including: Titles for both pages and posts – this is the single most important on-page SEO element Meta descriptions – snippet that appears below the title in search engines. Create compelling copy here to encourage searchers to click through to your result. Permalinks – remove stop words from slugs, shortening and simplifying them. We’ll go over all the important settings to make sure your site is primed for the search engines. First, go to Plugins > Add new and search for Yoast SEO. Once you find it, click install, then activate. After you set these elements in Yoast, you will use Strings translations to easily translate them. Page/Post Titles and Meta Descriptions 9/12
  • 10. By default, Yoast SEO automatically sets page and post titles based on your content using a variety of shortcodes. It is much better to write custom SEO titles and meta descriptions for both pages and posts, and you can easily do this within the Edit Post or Edit Page areas. You’ll find this below the body content area in the Yoast SEO module. In order to set the post/page titles and meta descriptions, do the following: 1. Go down to Yoast SEO module and click on Edit Snippet. 2. Enter your desired page/post title in the SEO title area. 3. Add engaging copy to the Meta description box. Well-written meta descriptions encourage searchers to click on your result and not someone else’s. 10/12
  • 11. Yoast provides a colored bar which turns green when the length of both the SEO title and Meta description areas are ideal. Make use of it, and try to create titles and meta descriptions with optimal lengths. Advanced settings In order to see some of the options in Yoast SEO, you must first enable the Advanced settings pages. To do this, go to Dashboard > Features and make sure the slider is set to Enabled (see screenshot above). Permalinks Yoast lets you remove stop words from your site URLs, which helps simplify and shorten them. In the Clean up permalinks section under Advanced > Permalinks, set the slider to Remove. Now, when you create a new page 11/12
  • 12. or post, Yoast will automatically remove these unnecessary words from the slugs or permalinks (shown right below the title at the top). With the free version of Polylang, you have to use different URLs for all language versions of each page and post. In their premium version, you can use the same URL across all languages. While this may seem like a nice feature, it is not totally necessary in my opinion. I use the free version, and my URLs are different for each language. Conclusion Using Polylang in conjunction with Yoast SEO to create your very own optimized, multilingual WordPress site is a great way to boost your site’s organic traffic by providing content in more than one language. Do yourself a favor, and use quality translations for the languages used on your site. Don’t rely on Google Translate, as machine translations are highly inaccurate and reflect poorly on your brand. If you want quality traffic, provide quality content. You may be surprised by the jump in website traffic from areas all over the world. Are you struggling with making your site multilingual? Leave comments and questions below, and I’ll try to help you (no guarantee that I can fix your problem). If you found this post helpful, please share it and spread the word! Want more like this? Sign up for my newsletter to receive helpful WordPress Tutorials, Tips and Tricks. 12/12