Header – core/template-part

The Header template defines a page area that typically contains a title, logo, and main navigation.

Use the Header template in the Site Editor to create a header area.

Screenshot

Header variant example screenshot

Example

This header template part uses the Site Logo – core/site-logo block. If this is not set then it will appear blank.


Notes

  • Use the Header variant in a page template that displays a header.
  • Either choose an existing template part to be displayed or construct a new one using the relevant blocks.
  • You can create multiple headers for use on different templates.
  • The Header variant sets the area attribute to header.
  • See also

    The following blocks/variations are not registered:

    core/template-part:footer.