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. […]
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.
Writing CSS has gotten a lot easier since I started doing this. I can’t count the number of times I’ve thought, “arg! If I could just use variables! Things would be so much easier!”
You know you love your work when you find yourself applying its principles to your choice of beverage.