Layout Settings in the new Gutenberg editor
For a very basic implementation of adding a text input to add body classes(would also work for adding a second field for post classes if necessary) to pages/posts, you could do the following: Register a custom field with register_post_meta – I’ll use an empty string for the first param, post_type so it applies to all. … Read more