1

In D8 how could I add a body class to a node create or edit page in a custom theme?

Am thinking there should be a way of doing this via the preprocess_html function in my theme file.

Please note that I'm trying to add a class to the body of a node create or edit page, not a normal node page. This is a very specific thing I'm trying to do which is not met by any previous answers.

I'm hoping that there is some variable within the preprocess_html function that can target these pages.

marked as duplicate by 4k4 8 May 6 '18 at 16:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.