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

Add template name as a CSS class in the editor #67179

Open
colinduwe opened this issue Nov 20, 2024 · 0 comments
Open

Add template name as a CSS class in the editor #67179

colinduwe opened this issue Nov 20, 2024 · 0 comments
Labels
[Type] Enhancement A suggestion for improvement.

Comments

@colinduwe
Copy link
Contributor

colinduwe commented Nov 20, 2024

What problem does this address?

I have a theme with page templates that have different background colors. If the user swaps the template, the editor's background color should match the front end. But currently the page template slug isn't added as a class to the editor like it is to the on the front end.

What is your proposed solution?

I worked around it by adding it via the admin_body_class filter but it would be nice to add it on the editor automatically.

@colinduwe colinduwe added the [Type] Enhancement A suggestion for improvement. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant