Displaying hreflang tags in the HTML head of website pages

Is it possible to display hreflang tags in the HTML head of website pages?

Starting version 2.3.0 the XML Google® Sitemap module has a new feature to display hreflang tags in the HTML head of website pages. You need to install the 'amasty/module-xmlsitemap-html-hreflang' package from composer suggest to use this functionality (the functionality is available as a part of an active product subscription or support subscription).

It adds a new tab - Hreflang in HTML Head to the module's general settings: 


You can select Product, Category and CMS pages for showing the Hreflang Tags on. Please see an example of it on the Home Page:



      • Related Articles

      • How to remove a store view from the XML Sitemap hreflang tags?

        If you'd like to remove a specific store from the XML Sitemap file, please go to Stores → Configuration → General select the required store and set Default country - Use website, Locale - Use Website. Save the settings and generate a new XML file. As ...
      • How to use meta tags templates?

        You can create unique meta tags for many pages at once using meta tag templates. If you'd like to generate a template, please navigate to Amasty → SEO Meta Tags Templates → Meta Tags by Category/Meta Tags by Custom URLs. First, please select a main ...
      • How to remove HTML from the product description?

        In order to remove unnecessary HTML tags from the product attributes - description, short description, title - it is recommended to use Strip Tags modifier, like in the following example: You may refer to this video to check how the functionality ...
      • What pages does the module affect?

        The extension affects only the pages indexed by Google. These are Home, CMS, category, and product pages. “Functional” pages of the website, like cart or checkout, are not affected by the module as they are not indexed.
      • How to set custom sorting on brand pages?

        Brand pages are essentially the Default category filtered by the 'brand' attribute. Therefore, any sorting logic assigned to the Default category in default Magento also applies to Amasty brand pages. To confirm or modify the sorting order for the ...