In this article, we will prove you how to easily add SEO hreflang tags in WordPress without writing a single line of code. Do you want to add hreflang SEO tags in your WordPress website posts and pages?
If you publish content in multiple languages or for different parts, then hreflang tag helps you improve SEO for those regions and languages.
What is hreflang tag?
Hreflang tag allows you to tell search engines like google which page to show for a particular region and language.
You can use it to define other variations of the same content in different languages.
Here is how a hreflang tag implementation looks like in plain HTML.
<link rel="alternate" href="example.com" hreflang="en-us" /> <link rel="alternate" href="example.com/fr/" hreflang="fr-fr" /> <link rel="alternate" href="example.com/pt/" hreflang="pt-pt" />
The hreflang tag is a combination of the language code and the area code. For example, en-us in English and the United States, for-Fr for French and France, and hence on.
WordPress is now available in more than 60+ different languages, and you can use WordPress in your own terminology.
Many WordPress website owners target users in different areas and languages.
Some people do that by creating multilingual websites, while others do that by providing some content in other languages.
Search engines algorithms can easily notice the language of a page and automatically match it to the language settings on the user’s browser.
However, your pages may still be competing with each other in the search results which may bear upon your site’s SEO.
You can implement hreflang tags to make that. Let’s see how to easily add
Let’s see how to easily add SEO hreflang tags in WordPress without writing a single line of code.
Method 1- Add SEO Hreflang Tags In WordPress Without Using a Multilingual Plugin
This method is for those users who are not using a multilingual plugin to manage translations on their sites.
The very first thing, you need to do is install and activate the HREFLANG Tags Lite plugin. For more details, see our step by step guide on how to set up a WordPress plugin.[button color=”” size=”” type=”square” target=”” link=”https://wordpress.org/plugins/hreflang-tags-by-dcgws/”]Download HREFLANG Tags Lite WordPress Plugin[/button]
After activation, the plugin will append a new menu item labeled HREFLANG in your WordPress admin menu.
Clicking on it will bring you to the plugin’s settings page.
Choose the post types where you’d like to enable the plugin and then click on the save changes button to save your current settings.
The next thing, you need to edit the post or page where you want to add the hreflang tag.
On the post edit screen, you will note a new meta box labeled HREFLANG tags.
The very first thing, you need to add the URL of the post that you are presently editing and then select its language. After
After that, you just need to click on the plus button to add URLs of other variations of the post and their language.
Once you are done with all these, click on the save or update button to keep open your post.
You can directly visit your post in a browser window and view its source code.
You will see the hreflang tag added to your post.
Method 2: Add hreflang Tag In WordPress Using A Multilingual Plugin
The best approach to establishing a multilingual WordPress site is by using a multilingual plugin. A multilingual WordPress plugin allows you to easily create and manage content in multiple languages using the same WordPress core software.
These plugins will automatically take care of all technical things such as the hreflang tag, and then you can focus on creating content. We recommend using Polylang.[button color=”” size=”” type=”square” target=”” link=”https://wordpress.org/plugins/polylang/”]Download WordPress Polylang Plugin[/button]
It is a free WordPress plugin and comes with a very powerful and comfortable to use interface to manage multilingual content.
For further detailed instructions, see our step by step guide on how to easily create a multilingual WordPress site.
Some other popular option is WPML.
It is a premium WordPress plugin with an easy to use interface to create multilingual content on your site.
After you have created any posts or pages in multiple languages, you just need to visit them in a fresh browser window. Right click and select ‘View Page Source’ from your browser menu.
This will open the source code of the post or page.
Now you need to look for an hreflang tag to verify that it is functioning properly.
You can also use CTRL+F (Command+F) keys to find the hreflang tag.
We trust this article helped you learn how to easily add SEO hreflang tags to your WordPress site without writing a single line of code.
I’m wishing you the best of luck!
Get started on WordPress today and start turning your spare time into spare cash.
Don’t forget to share this article with your friends.
Best of luck and have a great flight!