blocks
#
Blocks#
Create regionsin your themename.info.yml
, add the regions you need :
To place a region content in your twig, if you're in a page template :
If you want to place the region anywhere in your site, use twig tweak :
#
Status messages#
Place the status messages elsewhere or hide itThe status messages (block messages
) are located in the content area region by default. If you want to remove it or display it elsewhere, you have to :
- Place the messages in a hidden region (ie. auto_hidden_blocks)
- Use twig tweak to display it
{{ drupal_messages() }}