Home › Forums › Support › How to call editor-style.css from child theme? › Reply To: How to call editor-style.css from child theme?
October 30, 2015 at 6:46 pm
#149083
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 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development