dominicwatts/addbodyclass

Add dynamic body classes to pages - aid frontend development

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:magento2-module

1.0.6 2022-10-14 15:18 UTC

This package is auto-updated.

Last update: 2024-11-14 19:50:36 UTC


README

Add dynamic body classes to pages - aid frontend development. Add website code, store code and layout handles to body class.

PHPCompatibility

M2 Coding Standard

php-cs-fixer

M2 PHPStan

Install instructions

composer require dominicwatts/addbodyclass

php bin/magento setup:upgrade

Usage

Toggle admin config

Stores > Configuration > Pixie Media > Add body Class

Classes added

  • Website / store classes
  • Page (layout handle) type classes
  • Logged in/out classes
  • Optional custom class
  • Webp class