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?

user9664977 2 months 0 Answers 14 views 0

Leave an answer