Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
I'm creating a subtheme from bootstrap theme and trying to add some custom blocks in theme/config/install/optional as .yml files, but those blocks are not being created somehow.
What am I missing here?
Thanks!
Comments
Comment #2
markhalliwellYou can't.
Themes cannot "create" blocks (or any other type of "content" really).
Themes can only specify which region and weight a block should be positioned, if it already exists, upon install.
Otherwise, core simply ignores the config provided by the theme.