Discover in this tutorial how to allow the group block to use a background image in a classic WordPress theme using the theme.json file.
WordPress 6.4 introduced the option of being able to use a background image in the group block. But if you are using classic theme you may not see this option.
As I explained in previous tutorials you can use the theme.json file can be used in classic themes to get the latest WordPress features.
Let’s see how to do it in this case.
Instructions to enable the background image in the group block in a classic WordPress theme
A. Enable all appearance options
If you want to enable all editor settings and style options in a classic theme follow this tutorial.
B. Enable only the option to add the background image
In case you only want to activate the option of adding an image as background, you must add the following to the theme.json file.
To see this and another 1097 code snippets of this website, login or subscribe here.
Now you will see the option to add a background image:
If you want to take more advantage of the options offered by the theme.json file I recommend the tutorial where I talk about its structure and how to use it in a classic theme.
Conclusions
Having the option to use a background image in a group block is very interesting and now you know how to get it for any WordPress theme.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉