• Español |
  • Deutsch |
  • Русский |
  • Français |
  • Italiano |
  • Português |
  • Türkçe |

WPLANG

WordPress Multilingual

  • Blog
  • About
  • Toolbox
  • Contact
  • Start Here

How To Add Hreflang Tags in WordPress

Posted: 22.03.15 | by Irena Domingo

The implementation of hreflang attributes in a WordPress website can be a complicated process without a specific plugin. In this post I show you how to add hreflang tags in WordPress using translation plugins and specific plugins.

Insert Hreflang WordPress

1. What are hreflang attributes?

In 2010 Google introduced new SEO attributes for multilingual sites: rel=”alternate” and hreflang=”x”. Google uses these attributes to serve the correct language in search results.

Example of hreflang in header:

hreflang tag wplang

In Google Webmasters Tools you can check if your hreflang tags have been indexed correctly. Go to Search Traffic > International Targeting > Language:

International Targeting Section Hreflang tags

You can insert hreflang tags in one of three ways:

  • HTML link in header. The most common way.
  • Sitemap. You can submit language version information in a Sitemap (Article: How To Make Sitemaps In Multiple Languages With WordPress)
  • HTTP header (if you publish non-HTML files like PDFs)

2. How can you add hreflang tags in WordPress?

2.1. Using translation plugins

WordPress SEO by Yoast does not allow you to add hreflang tags, but some translation plugins can automatically add these attributes in your website as an HTML link.

For example, if you’re using WPML (premium plugin), you have an option in settings to display alternative languages in the head section using hreflang attributes. WPML is a great plugin for multilingual SEO because you can use it with WordPress SEO by Yoast (article: Using WordPress SEO with WPML).

WPML Display hreflang in head section

Other plugins like Polylang, Multilingual Press or Multisite Language Switcher also allow you to add hreflang attributes.

2.2. Using specific plugins

Also you can add hreflang attributes using two plugins:

  • Language selector related (free plugin). This plugin allows you insert hreflang attributes in your posts, pages, categories and tags, even if your websites are located in different hostings. You’ll have to install the plugin on each language version. Also, you can include a language selector as a widget in sidebar, header or footer

Language Selector Related Plugin

  • Hreflang Manager Codecanyon (premium plugin). With a menu in the WordPress dashboard you can connect pages and posts of your different websites. The plugin will automatically add the proper html markup in the HEAD section of the selected pages and post. It costs $ 14.

Hreflang manager WordPress

 

 

How do you add hreflang tags to your multilingual WordPress website?

 

 

Categories: Multilingual Websites


About the Author

Irena Domingo's avatar

Irena is the creator of the blog WPLANG (WordPress Multilingual) and a professional specialized in website localization. Irena now helps others to create a WordPress website in one language or create a multilingual WordPress website.

Featured Posts

How To Make A Multilingual WordPress Site: Best Translation Plugins

How To Add Hreflang Tags in WordPress

How To Make Sitemaps In Multiple Languages With WordPress

WordPress Multisite: How to Make a Multilingual Website

How to translate a WordPress theme (or plugin): Poedit

How To Submit Your Multilingual Website To Google, Bing, Yandex And Baidu

WordPress 100% In My Language

WordPress Multilingual, finally explained

Easy Social Share Buttons: A Plugin For Your Multilingual WordPress Site

WordPress 4.1: Install Language Packs From Dashboard

Twitter

Pages

  • About
  • Blog
  • Contact
  • Homepage
  • Sitemap
  • Tools I Use In My Multilingual WordPress Projects

This website is hosted by Cloudways, powered by WordPress (Genesis Framework and Caroline theme) and accelerated by KeyCDN

© 2014 - 2020 WPLANG: The Complete Guide to a Multilingual WordPress Website

Note that some articles of this blog contains affiliate links, so I make a few bucks if you use them. This won't cost you anything but helps me to keep the lights on (so to speak). Thank you very much. Irena