markshust / magento2-module-extrabodyclasses
Extra Body Classes 模块将网站和店铺代码添加到 body 类属性。
1.0.3
2021-08-11 19:35 UTC
Requires
- php: ^7.1
- magento/framework: ^102|^103
- magento/module-store: ^100|^101
This package is auto-updated.
Last update: 2024-09-12 02:30:21 UTC
README
Extra Body Classes 模块将网站和店铺代码添加到 body 类属性。
目录
摘要
有时您希望为特定的网站或店铺创建样式,并且这些样式不依赖于当前的主题。此模块将 Magento 的网站和店铺代码添加到 body 类属性,允许您将 CSS 定位到特定的网站或店铺。
安装
composer require markshust/magento2-module-extrabodyclasses
bin/magento module:enable MarkShust_ExtraBodyClasses
bin/magento setup:upgrade
使用
此模块没有配置。只需安装并刷新缓存,您应该会看到新类已添加到 body HTML 属性中。