vandersonramos / magento2-hreflangtag
This module adds the alternate hreflang tag
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.3.0||~7.4.0
This package is auto-updated.
Last update: 2025-03-23 12:10:09 UTC
README
Overview
The hreflang attribute (also referred to as rel="alternate") tells Google which language you are using on a specific page, so the search engine can serve that result to users searching in that language.
The module
Considering the Magento multi store structure, this module will add the hreflang tag to the pages.
Code Sample
<link rel="alternate" href="http://example.com/en" hreflang="en-us" />
<link rel="alternate" href="http://example.com/pt" hreflang="pt-br" />
Installation details
- Run
composer require vandersonramos/magento2-hreflangtag
- Run
php bin/magento setup:upgrade
- Run
php bin/magento cache:clean
Uninstall
- Run
composer remove vandersonramos/magento2-hreflangtag