Setup & site building · Guide
How to Edit the Header and Footer in a Block Theme
Short answer
Open Appearance, then Editor, then Patterns, and open the Header or Footer template part. Change the logo, title, menu, or text with blocks, then click Save. WordPress applies the change to every template that uses that part, so you edit it once instead of on each page.
Key takeaways
- The header and footer in a block theme are template parts, so one edit updates every page that uses them.
- The Site Editor opens at Appearance, then Editor, and it works only with a block theme.
- Save shows a list of changed templates, template parts, menus, and patterns before anything is stored.
- A saved template part is stored in the database and takes priority over the theme file.
- Classic themes use the Customizer at Appearance, then Customize, instead of the Site Editor.
What is a header template part in a block theme?
A header template part is a shared group of blocks that WordPress places at the top of every template that uses it.
WordPress.org describes a template part as a block for managing the repeating global areas of a site, such as a header, footer, or sidebar, and it can be reused across templates (Site Editor).
The footer works the same way at the bottom of the page. You edit the part once, and every page that uses it shows the new version.
Developer.WordPress.org lists Header, Footer, Sidebar, and Comments as common template parts, and it notes that parts are smaller sections included in one or more templates (Template Parts).
How do you know if your theme is a block theme?
Look at the Appearance menu in your dashboard: a block theme shows Editor, while a classic theme shows Customize instead.
WordPress.org states that the Site Editor is only available when you install and activate a block theme, and a block theme uses blocks for all parts of a site, including navigation menus, the header, content, and the site footer (Site Editor).
If you see Editor, follow the steps in this guide. If you see Customize, your theme is classic, and you need the Customizer route described near the end of this guide.
WordPress 7.1, code-named Mary Lou, was released on August 19, 2026, and WordPress 7.1.5 followed on November 18, 2026, as of November 2026 (WordPress Versions).
WordPress 7.2 is planned for December 10, 2026, as of November 2026 (WordPress Versions).
A block theme vs classic theme comparison can help you decide whether to switch themes before you start editing.
How do you edit the header in the Site Editor?
Go to Appearance, then Editor, then Patterns, open the Header template part, change its blocks, and click Save.
Follow these steps in order.
- Sign in as an administrator and open your WordPress dashboard.
- Go to Appearance, then Editor, to open the Site Editor.
- Click Patterns in the Site Editor menu.
- Scroll to the Template Parts section and open Header.
- Click the pencil icon to edit the header part on its own.
- Click a block to change it, or use the inserter (+) to add a block.
- Click Save at the top right and confirm the items listed.
WordPress.org gives the same path in its worked example: from the admin screen, select Appearance, then Editor, then Patterns, then Template Parts, then Header, then Header, and click the pencil icon to edit it (Site Editor).
The Save step matters. WordPress.org notes that clicking Save shows a list of all the synced patterns, navigation menus, templates, and template parts where you made changes, and you can choose to save all or just some of them (Site Editor).
You can open the Command Palette with Cmd+K on macOS or Ctrl+K on Windows and Linux to jump to content, templates, and patterns fast. WordPress.org lists those two shortcuts for the Command Palette (Site Editor).
The Template Part block dates back further: Learn WordPress notes that the Template Part block was introduced in WordPress 5.9 (Template Parts).
How do you edit the header inside a template?
You can also open a template, click the header area, and edit the part there.
Learn WordPress warns that a change made to a template part inside a template still applies across other templates that use the same part (Using Template Parts).
Use List View to check where you are. Learn WordPress advises using List View to make sure you are not working inside the purple highlighted area that marks a template part (Using Template Parts).
If you only want a change on one page, do not edit the shared part. Create a separate part instead, as shown in a later section.
How do you edit the footer in the Site Editor?
Go to Appearance, then Editor, then Patterns, open the Footer template part, change its blocks, and click Save.
The steps match the header steps exactly, with Footer in place of Header. Open Patterns, find the Footer part, click the pencil icon, edit the blocks, and save.
Common footer blocks are a paragraph for the copyright line, a Site Title block, and a Navigation block for footer links. You can also add social icons or a short contact line as plain blocks.
Developer.WordPress.org shows a simple footer part built from a Group block, a Site Title block, and a Paragraph block with a “Powered by WordPress” message (Template Parts).
That example is a starting point, not a rule. Your theme may ship a footer with columns, a menu, and a copyright line already in place.
What blocks go in the header and footer?
The header usually holds a Site Logo block, a Site Title block, a Site Tagline block, and a Navigation block.
The footer usually holds text, links, and a copyright line. The table below shows the usual blocks and where each one belongs.
| Block | Where it goes | What it does |
|---|---|---|
| Site Logo | Header | Shows the logo image you upload |
| Site Title | Header or footer | Shows the site name |
| Site Tagline | Header | Shows the short tagline under the title |
| Navigation | Header or footer | Shows a menu of links |
| Paragraph | Footer | Holds copyright text and contact lines |
| Social Icons | Header or footer | Links to your social profiles |
WordPress.org lists the Navigation block, the Site Title block, and the Query Loop block as examples of theme blocks built for the Site Editor (Site Editor).
You can add any block the editor offers, but keep the header short. A header with too many blocks crowds the top of every page.
How do you change the logo, title, menu, and text?
Click the block you want to change, edit it in the canvas or in the block settings sidebar, then save.
To change the logo, click the Site Logo block and upload a new image from your media library or your computer. Learn WordPress describes adding a Site Logo block and uploading an image from the media library or a computer (Using Template Parts).
To change the site name, click the Site Title block and type the new name. To change the tagline, click the Site Tagline block in the same way.
To change the menu, click the Navigation block. Add, remove, or reorder its links in the block settings, then save the part.
If a menu link will not save, the fault may sit with the menu itself rather than the header part. See the guide on fixing a menu that will not save before you rebuild the whole header.
To change footer text, click the paragraph, type the new text, and save. Update the year in the copyright line at the same time if it is out of date.
How do you change header and footer colors and fonts?
Open Styles in the Site Editor to change colors, typography, and layout for the whole site, or select one block to change only that block.
WordPress.org states that Styles lets you browse style variations, set typography, color palettes, and layout for the entire site, or change the look of specific blocks for the whole site (Site Editor).
To change the whole site, go to Appearance, then Editor, then Styles. Pick a style variation, or open Typography and Colors to set fonts and colors.
To change one header block, select that block, open its settings sidebar, and change its color or font size there. That change stays with the block, not with the whole site.
WordPress.org also notes that you can review style revisions or reset the changes from the three-dot menu in the Site Editor (Site Editor).
How do you use a different header on one page?
Create a second header template part, then swap it into that page template while other templates keep the main header.
Learn WordPress gives this exact case: if you want a different header on your home page but a standard header elsewhere, create a new header template part and add it to that page template (Using Template Parts).
Follow these steps.
- Go to Appearance, then Editor, then Patterns.
- Create a new template part, name it for the page, and pick the Header area.
- Build the new header with the blocks you want.
- Open Templates, pick the template for that page, and open it.
- Select the old header part, open its three-dot menu, and choose Remove.
- Insert a Template Part block in its place and choose the new part.
- Save the template.
Learn WordPress describes the same swap: remove the old template part, insert a Template Part block above the content, and select the new part (Using Template Parts).
Check the other pages after you save. Only the template you edited should show the new header.
How do you create a new header or footer template part?
Create it from Patterns in the Site Editor, give it a name, pick the Header or Footer area, and build it with blocks.
Developer.WordPress.org explains that you can create a new template part from the Patterns screen by clicking the plus icon next to Patterns, choosing Create template part, and then entering a name and selecting its area (Template Parts).
By default, you can pick the General, Header, and Footer areas. Developer.WordPress.org lists those three areas as the default choices when you create a part (Template Parts).
A new part you add in the editor is saved in the database. Developer.WordPress.org notes that new parts added through the editor are saved in the database, and you must copy the block markup to a file in the theme parts folder if you plan to share the theme (Template Parts).
If you need a header that no ready-made theme can give you, a custom build may be the next step. See how much a custom WordPress theme costs before you pay for one.
ordPress.org shows a typical block theme layout with parts/footer.html and parts/header.html inside a parts folder, next to templates, patterns, styles, style.css, and theme.json (Theme Structure).
Only two files are required for WordPress to treat a theme as a block theme: style.css and templates/index.html. Developer.WordPress.org names those two files as the required pair (Theme Structure).
The Template Part block links a template to a part by its slug. Developer.WordPress.org shows the markup as a template-part block with a slug value, and WordPress looks for a file named parts/your-template-part-slug.html in the theme folder (Template Parts).
You do not need to edit those files to change a header. Edit in the Site Editor first, and leave the files alone unless you build or share a theme.
A theme vs plugin guide can help you decide whether a header change belongs in the theme or in a plugin.
How do you undo or reset a header or footer change?
Use Undo right after a bad edit, or use the three-dot menu to review style revisions and reset changes.
The Site Editor toolbar has Undo and Redo buttons for the most recent action. WordPress.org lists Undo as reversing the most recent action and Redo as restoring an action you reversed (Site Editor).
If you already saved, open the three-dot menu and look for the revisions or reset option for styles. WordPress.org points to that menu for reviewing style revisions or resetting the changes you made (Site Editor).
For a saved template part, open the part again, remove the unwanted blocks, and save. There is no single undo button for a change saved in an earlier session.
You can also export the theme with your changes from Tools, then Export, in the Site Editor. WordPress.org describes that export as a downloaded zip file of your theme with the templates and template parts included (Site Editor).
Keep a copy of that export before a big redesign. It gives you a way back if the new header does not work as planned.
How does the Classic theme route differ?
Classic themes use the Customizer at Appearance, then Customize, with Site Identity for the logo, title, and tagline.
WordPress.com Support states that the Customizer is found at Appearance, then Customize, and it is primarily used by classic themes to change a site look (The Customizer in WordPress).
The same support page lists the Site Identity options as Logo, Site Title, Tagline, Site Icon, and Footer Credit (The Customizer in WordPress).
Menus sit under Menus in the Customizer, not inside a header block. The exact panels vary by theme, so check your theme docs if a panel is missing.
WordPress.com Support also notes that sites using modern block themes still see some Customizer options, with a message at the top that prompts you to visit the Site Editor for full control (The Customizer in WordPress).
If your theme is classic, do not look for Editor in the Appearance menu. It will not be there until you switch to a block theme.
Before you switch themes, check that the new theme is safe to use. See how to check if a WordPress theme is safe for the checks to run first.
What mistakes should you avoid?
Do not edit the shared header inside a template when you only want a change on one page.
Learn WordPress warns that a cover block added to the header inside a template will also show on every other template that uses that header part, including the 404 page (Using Template Parts).
Do not skip the Save review. The save list shows each changed template, part, menu, and pattern, so read it before you confirm.
Do not edit theme files directly to change a header. Theme updates replace those files, and your edits will be lost.
Do not assume a change shows at once on the live site. Clear your page cache and reload the page while signed out to check what visitors see.
If you are still choosing a theme, compare the price bands first. A free vs premium WordPress themes guide sets out what each tier tends to include.
Check the result on a phone as well as a desktop. Open the home page, a post, and a page, and confirm the header and footer look right on each one.
Frequently asked questions
Where is the header in a WordPress block theme?
The header is a template part in the Site Editor. Go to Appearance, then Editor, then Patterns, and open the Header part. Edit its blocks and save, and the change shows on every template that uses that header part.
Why does my header change show on every page?
The header is shared, not copied to each page. WordPress loads the same template part into every template that includes it, so one edit updates all of those pages at once. To change one page only, create a second header part and use it in that page template.
Can I edit the header without code?
Yes. In a block theme, the Site Editor lets you change the logo, title, tagline, menu, text, colors, and layout with blocks and settings panels. You only need code if you want to build a theme file or add a feature the editor does not offer.
How do I change the footer copyright year?
Open Appearance, then Editor, then Patterns, and open the Footer template part. Click the paragraph that holds the copyright line, type the new year, and save. The new line then shows on every page that uses that footer part.
What if Appearance shows Customize instead of Editor?
Your theme is a classic theme, so the Site Editor is not available. Use Appearance, then Customize, and look under Site Identity for the logo, title, and tagline, and under Menus for navigation links. Switch to a block theme if you want to edit headers with blocks.
How do I get the old header back after a bad edit?
Use Undo right away if you have not saved yet. If you already saved, open the header part again and remove the unwanted blocks, then save. You can also check style revisions from the three-dot menu in the Site Editor, or restore a backup or theme export you made before the change.
Sources
- Site Editor WordPress.org Documentation
- Template Parts WordPress Developer Resources
- Theme Structure WordPress Developer Resources
- Using Template Parts Learn WordPress
- WordPress Versions WordPress.org Documentation
- The Customizer in WordPress WordPress.com Support
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
