WPML Yoast SEO Multilingual
We use Yoast SEO on all our sites, to quickly and easily optimize for search engines. It lets us control the meta attributes that Google reads and add vital SEO information to all pages.
WPML and Yoast SEO teams work together to ensure complete compatibility, letting you optimize your multilingual sites in a simple way.
Here is a short video that explains the multilingual workflow of translating Yoast SEO textual attributes using WPML:
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 texts 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 Select strings within domain drop-down.
Following the same steps, you can find all the translatable strings for the rest of the SEO attribute templates.
Translation of page SEO attributes
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, we click on the plus icon in the Language box.
This sends a page to your translation editor. The SEO attributes are shown along with the content of your page. After you are done with translation click the 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 contents”, as far as WPML is concerned.
WPML knows how to handle the different SEO attributes when you translate content.
To save your work, WPML will automatically synchronize the “non-text” fields and let you translate the textual fields. Here are the SEO attributes for the Spanish translation of our page.
If you dig deeper, you will notice that the non-textual settings are synchronized between the translations.
If you update the non-textual 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 update the non-textual setting in the secondary language page, follow the steps below:
- Click the spinning arrows icon to go to the Translation Editor page.
- Fill in the fields with your translated content and mark them as completed and save all the changes.
Translation of breadcrumbs
You can enable breadcrumbs in the advanced settings 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 it in the WPML String Translation panel. This is shown in the following screenshot.
How SEO Sitemaps work with WPML
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.
Improving the ranking and having more visitors is one of the important goals for any website. Yoast SEO plugin by Yoast 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.