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
版权声明:本文标题:How do I load styles for editing the admin interface for the block builder? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736638240a1945931.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论