Our website has several global components that were present on our home page that don't currently exist on our interior pages. One such item is the Global Header, which consists of the Utility menu, Logo, Main menu, and Search form block.
To add this section to our template, all we need to do is simply copy the header
markup from the page--front.html.twig
template.
page.html.twig
and delete the entire contents.page--front.html.twig
and copy the following markup:<header class="header" role="banner"> <div class="header-top"> <div class="container"> {{ page.header_top }} </div> </div> <div class="header-nav container"> {{ page.header}} {{ page.primary_menu }} </div> </header>
page.html.twig
.{{ page.content }}
page.html.twig
.Make sure to clear Drupal's cache and refresh the About Us page within our browser. Our header is now in place and functioning as we would expect.
52.14.151.45