Reply To: How to call editor-style.css from child theme?

Home Forums Support How to call editor-style.css from child theme? Reply To: How to call editor-style.css from child theme?

Home Forums Support How to call editor-style.css from child theme? Reply To: How to call editor-style.css from child theme?

#149083
Tom
Lead Developer
Lead Developer

You should just have to do this:

add_action( 'after_setup_theme', 'generate_child_setup' );
function generate_child_setup() 
{
	add_editor_style( 'path/to/editor-style.css' );
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

The above assumes it’s in the path and to folders in your child theme.

If it’s just inside your root child theme directory, it would just be:

add_editor_style( 'editor-style.css' )

Hope this helps 🙂