admin管理员组

文章数量:1125559

I'd like to style the block builder interface. Specifically, I'd like to alter the margins around the outside of the block builder "canvas".

My understanding is that if I simply load a stylesheet for the block builder to load, some rules will not be applied. Specifically, those rules that apply to the interface itself.

My understanding is that to edit the style of the block builder canvas, I should use the 'enqueue_block_editor_assets' action hook.

I have the following function. It does fire, but the stylesheet isn't being requested by the admin page.

add_action( 'enqueue_block_editor_assets', 'style_block_builder');

    function style_block_builder() {    
        wp_enqueue_style(
        'block-editor-ui-styles', 
        get_template_directory_uri() . '/css/block-editor-interface.css'
        );
    }

本文标签: How do I load styles for editing the admin interface for the block builder