Skip to content

Quick win: add Magento store code to body class #1134

@shirtsofholl

Description

@shirtsofholl

Please add Magento store code to body class (as extra class)

Now we have route + page-name

cms-index-index cms-page-name

I suggest to add webstore code (or even domain/url) and/or both

cms-index-index cms-page-name store-en domain-com

What does it solve?

  • ability to set CSS per store view (so per language store-en)
  • ability to set CSS per domain (so per domain-com)

Maybe there is a better way. And there are ofcourse other methods to achieve someting like this - but it seems as a quick win ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions