Subtheme a Basic block in Layout Builder
- In Layout Builder, add a Basic Block to a Section and name the title
twig_my_template_name
. Replacemy_template_name
with your preferred name in this instance. - This will create a theme suggestion for the block called
block--twig-my-template-name
. By default the title will still display, so if needed you can uncheck the Display Title box to hide the title. - If you do want the title to display, you can use a colon after the template name.
twig_my_template_name: My Title
becomesMy Title
when displayed in the block title. - With the
block--twig-my-template-name
created, you can now proceed to subtheme this block.