How do I add default header and footer regions to my site? i have added regions in my theme.info file. now i want to add default header and footer with logo in all the pages of my site.This is my page.html.twig

&lt;div class="layout-container"&gt;

  &lt;header role="banner"&gt;
    {{ page.header }}
  &lt;/header&gt;

  {{ page.primary_menu }}
  {{ page.secondary_menu }}

  {{ page.breadcrumb }}

  {{ page.highlighted }}

  {{ page.help }}

  &lt;main role="main"&gt;
    &lt;a id="main-content" tabindex="-1"&gt;&lt;/a&gt;{# link is in html.html.twig #}

    &lt;div class="layout-content"&gt;
      {{ page.content }}
    &lt;/div&gt;{# /.layout-content #}

    {% if page.sidebar_first %}
      &lt;aside class="layout-sidebar-first" role="complementary"&gt;
        {{ page.sidebar_first }}
      &lt;/aside&gt;
    {% endif %}

    {% if page.sidebar_second %}
      &lt;aside class="layout-sidebar-second" role="complementary"&gt;
        {{ page.sidebar_second }}
      &lt;/aside&gt;
    {% endif %}

  &lt;/main&gt;

  {% if page.footer %}
    &lt;footer role="contentinfo"&gt;
      {{ page.footer }}
    &lt;/footer&gt;
  {% endif %}

&lt;/div&gt;{# /.layout-container #}


I have placed files region--header.html.twig and region--footer.html.twig .Please help me how to place logos and other contents in header and footer
You define a region in your theme's info file and then print it in your page.html.twig. Content to each region is added via blocks. You only add your own region templates when you need to make some changes to the markup.



OK, so you added the regions in your info file, and printed them in your page template, fine. First of all, delete your region--header.html.twig and region--footer.html.twig again. Then in the backend of your site go to Structure > Blocks. Your newly added regions should appear there. Now place some blocks in your newly added regions. Save, flush cache and visit your frontend again. Your regions should be populated now.

And regarding the region--YOURREGION.html.twig templates you should have deleted by now, these only will be picked up when these regions are populated – with blocks. Otherwise these regions simply won't get printed at all.