MarkShust_ExtraBodyClasses
markshust/magento2-module-extrabodyclasses
Adds the website and store codes to the body class attribute.
Known issuesBuild failingSemVer compliant
Supported Magento versions: 2.4.9
1,827 installs★ 33 starsLatest: v1.0.3Released 2021-08-11License: MIT
composer require markshust/magento2-module-extrabodyclassesREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
Sometimes you wish to create styling for a specific website or store, and have it not be dependent upon the current theme. This module adds the website and store codes of Magento to the body class attribute, allowing you to target your CSS to a specific website or store.
composer require markshust/magento2-module-extrabodyclasses
bin/magento module:enable MarkShust_ExtraBodyClasses
bin/magento setup:upgrade
This module has no configuration. Just install and flush the cache, and you should see the new classes added to the body HTML attribute.
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues