mrwweb / hybrid-starter-theme

My customizations to the _s theme to make it better for a hybrid theme that embraces the block editor.
2 stars 0 forks source link

Admin body classes? #3

Open mrwweb opened 1 year ago

mrwweb commented 1 year ago

Can I get specific body classes onto the Site Editor, Template Parts, and Block Editor to use for custom styles?

Ex: Sidebar Template Part should be the width of a sidebar by default

mrwweb commented 5 months ago

As of right now, I believe this is blocked upstream. See WordPress/Gutenberg#17854

mrwweb commented 4 months ago

:has() is a good replacement for some use-cases like when I detect if the post contains a heading block. However, it still doesn't support templates.