
Blog is a powerful tool that allows you to drive traffic to your store. If you manage a multi-language website you get even more of that traffic. However, it's not as easy to get all those pages to rank in different languages as it seems. You need hreflang tags for that.
They tell search engines that you have multiple pages in alternative languages. So they don't focus on ranking only one of them.
However, adding hreflang tags is not that easy. You need to do that through code or a sitemap. Or you can opt for a much easier option —
.Today we'll show you how easy it is to add hreflang tags to Magento blog pages, using this handy tool.
Note: Magefan Hreflang Tags Extension works with
only.Add Hreflang Tags to Blog Posts
Start by going to the Content > Blog > Posts and choosing the post you want to add the alternate hreflang tags on.
Then find the Alternative Store View Localizations section and set the hreflang tags. Just start typing the page title in an alternative language and choose a corresponding option from the dropdown.
e.g. we have a blog post in English and Ukrainian languages. So we go to the English page to set the Ukrainian alternate hreflang tags for it.
Note: you don't need to go to the page in the other language (in our case Ukrainian) to set the hreflang tag there (English page tag). The extension will fill it out automatically.
Once you save the post, hreflang tags will appear in the code.
Follow the entire process in this short video to see how it works.
Add Hreflang Tags to Blog Categories
Hreflang tags for Magento blog categories work completely the same. Just navigate to Content > Blog > Categories and choose a category.
Then set the alternative blog category page in the Alternative Store View Localizations section.
Save a category, and check hreflang tags on the storefront.
Just like that, you added hreflang tags for Magento blog pages without any coding or technical skills. But there's more.
Since you assign alternative pages based on IDs, you don't have to worry about the blog titles or URLs. Even if they change the extension will update hreflang tags automatically.
Just remember to add hreflang tags to Magento pages too to ensure proper store switching across the entire website.