Adding a theme.json file to a (block-based) child theme

[ad_1]

in my current child-theme project – I have 4 files – functions.php, screenshot.png, style.css, and just added a theme.json.

I copied a short snippet example from the [WordPress docs](https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-json/) to test out. But I’m not sure if it is working or overriding the parent theme.json. Do I need to write some kind of action in functions.php?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer