The Store Code Body Class module for Magento2 adds the website & store code to the body class.

Installs: 36 260

Dependents: 0

Suggesters: 0

Security: 0

Stars: 33

Watchers: 4

Forks: 9

Open Issues: 0


2.0.1 2017-11-14 13:32 UTC

This package is auto-updated.

Last update: 2022-07-12 14:10:02 UTC


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.


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.


This module has been released under the MIT license.