Create child theme – Should auto create functions.php to load blocks.json
-
I looked at the developer documentation on Child Theme.
It is a multi step procedure:
- Create a child theme folder
- Create a stylesheet: style.css
- Enqueue stylesheet (with a functions.php)
I had hoped that the plugin performs all steps necessary to be “boilerplate ready”. It does 1 + 2. But not step 3.
I had hoped that it creates:
- a boilerplate
assets/blocks/
folder - with one boilerplate
core-NameOfProminentBlock.css
(with all Modular-CSS BEM-style selectors already there, only the attributes all empty) - and a
functions.php
already set up that it enqueues all theassets/blocks/
recursively through that array loading technique (pardon my amateurish language, I am a UX designer knowing CSS, but not PHP).
So that I know whatever other block specific CSS files that I create (by duplicating the boilerplate
core-NameOfProminentBlock.css
) automatically gets added properly.Now I need to learn all this myself and create it manually. Surely doing many errors along the way. I had hoped that the plugin also helps me to expedite that part.
I hope that you will extend the plugin with more automatization in that regard too. Thanks!
- The topic ‘Create child theme – Should auto create functions.php to load blocks.json’ is closed to new replies.