Adding a wp-block-paraggraph class to paragraphs made in Gutenberg

All the default blocks seem to have a wp-block-[name] class added to them, but not the paragraphs which is stopping me from adding global styles to them to know they are a block paragraph and not a custom one. I understand this should ideally be done in theme.json where available, but I can't find any example to do this, and if I just copy how things like color work by looking at the block.json and modifying the className it doesn't work. And as always WordPress block documentation is lacking. { "version": 3, "settings": { "blocks": { "core/paragraph": { "className": "wp-block-paragraph" } } } }

Comment (0)

You’ll be in good company