Add Regions to a Theme for Drupal 8, Drupal 9

Last updated June 3, 2020

Customizing the available regions in your theme is likely one of the first things you'll do when creating your own themes. Doing so gives you complete control over where content is displayed on the page, and the markup involved. Adding regions to a theme is a two-step process that involves editing your theme's .info.yml file and updating your page.html.twig file.

In this tutorial we'll learn how to:

  • Declare one or more new regions to Drupal
  • Display the content of those regions in our theme