admin管理员组文章数量:1326345
The Gutenberg Handbook mentions that some CSS for WordPress core blocks are applied to the front-end and within the editor by default (and that they cannot be disabled) but there are more opinionated CSS styles available that can be optionally added by adding the following your theme (in one of the PHP files, typically done through functions.php).
add_theme_support( 'wp-block-styles' );
I'm trying to find a list of these CSS rules added by wp-block-styles
I've searched through the Gutenberg repo and the only contents of wp-block-styles
are the documentation that I linked to above.
The Gutenberg Handbook mentions that some CSS for WordPress core blocks are applied to the front-end and within the editor by default (and that they cannot be disabled) but there are more opinionated CSS styles available that can be optionally added by adding the following your theme (in one of the PHP files, typically done through functions.php).
add_theme_support( 'wp-block-styles' );
I'm trying to find a list of these CSS rules added by wp-block-styles
I've searched through the Gutenberg repo and the only contents of wp-block-styles
are the documentation that I linked to above.
1 Answer
Reset to default 1If you have the Gutenberg plugin installed and enabled, the css rules are loaded in
/plugins/gutenberg/build/block-library/theme.css
;
If you're just using the block-editor that is in core WordPress, the rules will instead be loaded from:
wp-includes/css/dist/block-library/theme.css
本文标签: What CSS rules are introduced to core blocks through wpblockstyles
版权声明:本文标题:What CSS rules are introduced to core blocks through wp-block-styles? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742198514a2431524.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论