scandi / module-store-hreflang-scope
一个模块,用于检查页面的每个出现并设置hreflang链接
dev-master
2020-08-06 16:50 UTC
This package is not auto-updated.
Last update: 2024-09-28 10:46:06 UTC
README
Scandi_HreflangScope模块功能如下:
- 每次渲染CMS页面时,该模块将检查该页面是否在任何其他商店中可用。
- 如果是,将为每个商店添加一个
<link rel="alternate" hreflang="xx-xx" href="baseUrl . pageUrl">
。
安装
Composer方法
- 在您的项目目录中运行
composer require scandi/module-store-hreflang-scope:dev-master
。 - 运行
bin/magento setup:upgrade
。
ZIP方法(app/code)
此外,您还可以直接将模块文件插入到Magento 2安装中的app/code目录。
- 创建app/code/Scandi/StoreHreflangScope目录。
- 将zip中的所有文件插入到此创建的目录中。