📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Potentially Abandoned v2.0.1

Module Store Code Body Class

samgranger/module-store-code-body-class

Adds the store and website code as classes to the `<body>` tag. This allows for easier, store-specific CSS styling.

59,658
Downloads
Below average
32
GitHub Stars
Below average
8y ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
8 warnings
L5 PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

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

v2.0.1 on Magento 2.4.8-p3
Dec 28, 2025

Share This Module's Status

Module Store Code Body Class Magento compatibility status badge

README

Loaded from GitHub

Latest Stable Version Total Downloads Monthly Downloads License

Magento 2 Store Code Body Class Plugin

As the name suggests, this plugin simply adds the store & website code to the body class.

Install

composer require samgranger/module-store-code-body-class
php bin/magento setup:upgrade

You might have to clear Magento's cache after installation to see the changes depending on your situation.

License

This module has been released under the MIT license.

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.