markshust/magento2-module-extrabodyclasses

The Extra Body Classes module adds the website and store codes to the body class attribute.

Fund package maintenance!
markshust

Installs: 1 774

Dependents: 0

Suggesters: 0

Security: 0

Stars: 31

Watchers: 4

Forks: 5

Open Issues: 0

Type:magento2-module

1.0.3 2021-08-11 19:35 UTC

This package is auto-updated.

Last update: 2024-06-12 02:00:15 UTC


README

The Extra Body Classes module adds the website and store codes to the body class attribute.

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667

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