Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No home/blog body class #14990

Closed
strarsis opened this issue Apr 15, 2019 · 2 comments
Closed

No home/blog body class #14990

strarsis opened this issue Apr 15, 2019 · 2 comments

Comments

@strarsis
Copy link
Contributor

strarsis commented Apr 15, 2019

Describe the bug
The body class home or blog for front page/blog page is
missing for <body> in Gutenberg editor page.

To reproduce
Steps to reproduce the behavior:

  1. Create a new page in backend.
  2. Make that new page the front page.
  3. Open this new front page in Gutenberg editor.
  4. Notice (e.g. in Web Developer Tools) that <body> got no home or blog class assigned.

Current code for switching template class in <body> (based on code of others here on GitHub):
https://discourse.roots.io/t/gutenberg-body-class-elements-by-template/15310

@strarsis
Copy link
Contributor Author

Quite related: #8948

@swissspidy
Copy link
Member

Closing as a duplicate of #10640, for the same reason #8948 was closed as a duplicate too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants