The Home for
Magento Excellence

Explore. Discover. Elevate. #magento

162
Modules Tested
98
Ready for Magento 2.4
64
Need Your Help
Potentially Abandoned v1.0.3

MarkShust_ExtraBodyClasses

markshust/magento2-module-extrabodyclasses

Adds the website and store codes to the body class attribute.

1,823
Downloads
Below average
33
GitHub Stars
Below average
4y ago
Last Release
0
Open Issues
Build Issues
0/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.3 on Magento 2.4.8-p3
Dec 16, 2025
v1.0.3 on Magento 2.4.8-p2
Aug 14, 2025
v1.0.3 on Magento 2.4.8
May 21, 2025
v1.0.3 on Magento 2.4.7-p4
Feb 15, 2025
v1.0.3 on Magento 2.4.7-p3
Oct 20, 2024
v1.0.3 on Magento 2.4.7-p2
Sep 8, 2024

+4 older tests

GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

Looking for Contributors

Composer installation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

MarkShust_ExtraBodyClasses Magento compatibility status badge

README

Loaded from GitHub

Table of contents

Summary

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.

Installation

composer require markshust/magento2-module-extrabodyclasses
bin/magento module:enable MarkShust_ExtraBodyClasses
bin/magento setup:upgrade

Usage

This module has no configuration. Just install and flush the cache, and you should see the new classes added to the body HTML attribute.

License

MIT

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

Back to All Modules