Enabling Wordpress block styles

It seems that custom block styles such as background color, font size or align etc aren’t working. I’m guessing this was intentional? Can we turn them on somehow?

Thanks!

Are you referring to the ‘default’ styles that come with the Block Editor? I find these very useful but I do not want to load all of them as much is not needed.

I use roots/acorn-prettify and set 'disable-gutenberg-block-css' => true,
This disables loading of the CSS in the <head>

Then I add the necessary CSS directly to app.css from /wp-includes/:

@import "../../../../../wp-includes/css/dist/block-library/common.css";
@import "../../../../../wp-includes/blocks/cover/style.css";
@import "../../../../../wp-includes/blocks/group/style.css";
2 Likes