Alternate hreflang tags play an important role for all your multi-language website pages, including blog categories. They notify search engines about the alternative pages and allow them to display a page that best suits a customer.

With the Magento 2 Alternate Hreflang Extension setting up hreflang tags for all your Magento 2 store pages is easier than usual. So, in this article, you will find out more about how to configure href tags for blog category page.

To add hreflang tags for Magento blog category:

  1. Go to Content > Blog > Categories and choose the category you want to add hreflang tags for.
  2. Find the Alternative Store View Localizations section and set the alternative blog category page there. Just start entering the page title and choose the corresponding page from the dropdown. 

Hreflang Tags for Blog Category

Once you Save the blog category, go and check hreflang tags on the storefront.

Alt href tags for Magento Blog Category

No need to work with the code or acquire technical skills to set up hreflang tags for blog category or any other page of your Magento 2 website.

Except for the language codes, you can also add country codes and x-default page to the hreflang tags. Check out the hreflang tags configuration guide to learn more about these options and when to use them.