Add new block region in theme for drupal 8

 

Add new block region in a drupal 8 theme is basically a two step process:

 

Suppose a new region named as "Header1" is being added

 

1) Open THEMENAME.info.yml file exists in /THEMENAME folder

 

 

Add the following line under keyword regions:

 

header1 : Header1

 

 

2) Open page.html.twing file exists in /THEMENAME/templates folder

 

 

Add the following line in this file anywhere you want to place this region

 

{{ page : header1 }}

 

 

After completing the above process, open this path "/admin/structure/block". As a result, Header1 is added in the already available block regions.

 

 

Note: If block region is not added after following the above process then clear the cache before checking the result.