• Resolved MarkRH

    (@markrh)


    When the Gutenberg Editor becomes the default, will the Twenty ## themes be updated such that the editor looks like the front end?

    I’ve managed to get some things changed by creating a blocks.css file and adding the following to my child theme’s functions.php:

    
    /**
     * Enqueue block editor style
     */
    function mytheme_block_editor_styles() {
        wp_enqueue_style( 'mytheme-block-editor-styles', get_theme_file_uri( '/blocks.css' ), false, '1.0', 'all' );
    }
    
    add_action( 'enqueue_block_editor_assets', 'mytheme_block_editor_styles' );

    I am guessing since these are WordPress themes that they will be updated at some point?

    • This topic was modified 7 years, 10 months ago by MarkRH.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter MarkRH

    (@markrh)

    Theme updated with WordPress 5.0 solved this. Will make another thread with another question.

Viewing 1 replies (of 1 total)

The topic ‘Gutenberg Editor Styles’ is closed to new replies.