# Component Blocks
 This folder contains the Gutenberg configurations and PHP renderers for Blocks available in the Gutenberg editor. Each block is autoloaded.

## Structure
 Every folder in this directory represents a Block. Folders are named with the "key" property of their associated 
 [AUX Field Group](../inc/WP_AUX/Entities/AuxCF/FieldGroups/README.md).

Every folder contains a PHP renderer (again named with the "key" property of the Field Group). This file is what is included and renders the block on the frontend.

Additionally, every folder has a [WordPress-standard "block.json" file](https://developer.wordpress.org/block-editor/getting-started/fundamentals/block-json/).

## Child theme blocks
Child themes can add additional blocks. To add one, follow the pattern for blocks here. In the chile theme's blocks folder: create a folder for the block, a php file for the renderer and a block.json. The folder name and the file name for the renderer must match the key for the Advanced Custom Fields field group.
