How to Add a Container Class to Standard Gutenberg Blocks

I am using ACF fields to create custom Gutenberg Blocks. I am running into an issue however where I need to go in and out of a container div depending on the block. So I cant just add a container div around the_content();

What I’m trying to do is add a class to each of the standard Gutenberg blocks, so I can add the container styles to each of those blocks, making it easier to go in and out of the container div for better content styling.

Is there a way to accomplish this?

1 Answer
1

You can use the group block to act as a container for a core block or any other block…

Leave a Comment