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

arm4 created an issue. See original summary.

markhalliwell’s picture

Category: Task » Support request
Status: Active » Closed (works as designed)
Issue tags: -custom block, -bootstrap theme, -subtheme

You 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.