For a recent project, I wanted a really simple way to throw some content into the WP Block Editor (Gutenberg) together with an image, and set the image as a background image. Here are the steps to create the group: add an image that will serve as the background image add some text select the image and all the text blocks together convert the selected blocks to a group in the “advanced” settings the group block, add the class ‘bg-img’ or ‘bg-image’ If you add the ‘overlay’ class, together with ‘white’ or ‘black’ (more, of course, if you add the class settings), you can add a cool little transparent overlay. […]
WordPress
The WordPress environment gives a lot of power to developers. You're free to open up and study, alter, or use any of the code that is compatible with the platform.
But the best part about WordPress development its powerful set of native functions (conditional tags, taxonomies, hooks, etc) which give the developer great control over how and where to display content stored in the database.
Checking for a specific category
This function will allow you to check if the current post or archive page is assigned a specific category. I use it often to apply category-based body classes and special styles for category archives.