Yoast SEO and WPML power tens of thousands of multilingual WordPress sites. Together, they help you optimize your site’s content for search engines in each of the site’s languages (multilingual SEO).
Improving the ranking and having more visitors is one of the important goals for any website. Yoast SEO plugin is a great plugin to improve your site’s SEO and its integration with WPML allows you to have your multilingual search engine optimized with ease.
- Getting Started
- Translating Global SEO Texts
- Translating Page SEO Attributes
- Translating Breadcrumbs
- How SEO Sitemaps Work with WPML
- Known Issues with Yoast SEO
- Getting Help from our Support
Start by installing and activating the following plugins:
- Yoast SEO
- WPML core plugin and WPML String Translation add-on
- WPML SEO plugin. This “glue” plugin allows for easier translation of your SEO content using WPML. You can download it from your WPML account’s Downloads page.
If you’re new to WPML, check out our Getting Started Guide. It quickly walks you through different translation options you can use.
Yoast SEO lets you enter text that applies to the homepage and also as templates for the entire site.
Go to the SEO → Search Appearance page and click the General tab. Keep in mind that if you have selected a static homepage on the Settings → Reading page, you can set the title and description for the front page by editing it.
After you enter the title and meta description, go to the WPML → String Translation page to translate them. The String Translation page includes all the text that do not belong to a specific post or page but are coming from different theme and plugin texts.
To display all of Yoast SEO admin texts, select admin_texts_wpseo_titles in the In domain drop-down. Click the plus button next to the text you want to translate. Add the translation in the pop-up that appears, and press Enter.
Follow the same steps to find all the translatable strings for the rest of the SEO attribute templates.
Yoast SEO adds a meta box to the content editor. There, you can control the page title, meta description, and focus keywords for each page separately.
Since WPML uses different pages for each language, they naturally have their own respective SEO attributes.
Let’s create a page, add some SEO attributes to it and translate it.
As you can see, we’ve entered the SEO title, meta description, slug, and focus keyword for this page. This is an English page, so we’ve entered the SEO attributes in English.
To translate this page, click on the plus icon in the Language box.
This opens the page in the Advanced Translation Editor. Here, you can translate the SEO attributes along with the content of your page. After you are done with translation click Finish button.
The newly added Spanish translation has its own page. As a new page, it has its own title and contents. The SEO attributes are just another set of custom content, as far as WPML is concerned.
To save you work, WPML automatically synchronizes the “non-text” fields and lets you translate the text fields. Here are the SEO attributes for the Spanish translation of our page.
If you dig deeper, you will notice that the non-text settings are synchronized between the translations.
If you update the non-text settings in the default language page then click on the Update button, you will see the spinning arrows icon in the language meta-box, which indicates that the content is translated, but the translation needs updating. To synchronize the non-text setting in the secondary language page:
- Click the spinning arrows icon to go to the Translation Editor page.
- Fill in the fields with your translated content and save all the changes.
You can enable breadcrumbs on the SEO → Search Appearance page, under the Breadcrumbs tab. Once enabled, the page titles added to breadcrumbs will automatically appear in the appropriate language.
The only exception is the anchor text for the homepage. You need to translate by going to WPML → String Translation.
A sitemap is an XML file that lists all the pages on your site for search engines like Google.
Usually, there should be a sitemap for each domain and this is exactly what happens when using the A different domain per language option located on the WPML → Languages page, together with the Yoast SEO plugin.
For example, when you have en.mydomain.com for the English site’s versions and es.mydomain.com for the Spanish site’s version, you will end up with two different XML files for each language version. Both versions will be listing the correct pages for their respective language.
You can find the default language sitemap, by going to yourdomain/sitemap_index.xml. For the sitemap in the secondary language, go to your-secondary-language-domain/sitemap_index.xml.
WPML works fine with this plugin, but sometimes there could be minor issues we're working on. This is expected as both plugins provide frequent updates.
Current unresolved issues:
- Yoast SEO – robots.txt doesn’t automatically change sitemap URLs when using a different domain per language
You can also search all known issues including previously resolved issues for this plugin.
If you need help translating your site built using Yoast SEO and WPML, visit WPML’s support forum.