I am using bedrock for the first time and I have setup a child theme in it. I want to know how to add a class in the theme so it is autoloaded just like how the rest of bedrock is working.
- set up composer autoloads in your child theme
requirethe composer autoloader in your child theme, example: https://github.com/roots/sage/blob/36937b4ceafb9b3c5b705be2ad6f75bc77a9efce/functions.php#L14
Note: This is unrelated to bedrock. You can use this technique on non-bedrock projects.
This topic was automatically closed after 42 days. New replies are no longer allowed.