New The Perfectly theme: 95+ mobile PageSpeed, affiliate blocks built in. See the theme →

How to Change the Header in WordPress (Add a Logo, Step by Step)

3 min read
How to change the header in WordPress
On this page
  1. Before
  2. Step 1: Open the header template part
  3. Step 2: Add a Site Logo block
  4. Step 3: Set the logo size
  5. Step 4: Save
  6. Other header changes you can make the same way
  7. Frequently asked questions
  8. Additional resources

To change the header in WordPress with a block theme, go to Appearance → Editor → Patterns → Header, open the header, edit or add blocks (logo, menu, buttons), and click Save. The change applies to every page that uses that header.

On our WordPress 7.1.4 test site (Twenty Twenty-Five), we added a logo to the header on 16 November 2026. The default header only shows the site title and the menu.

Before

The default Twenty Twenty-Five header without a logo
The default header: site title on the left, menu on the right.

Step 1: Open the header template part

Go to Appearance → Editor → Patterns, click Header under Template parts, and open the header your site uses. The sidebar lists what is inside (Site Title, Navigation) and, under Design, alternative header layouts you can switch to in one click.

The Header template part open in the Site Editor
The Header template part in the Site Editor. The Design list offers other layouts.

Step 2: Add a Site Logo block

Click the site title, press Ctrl+Alt+T (Windows) or Cmd+Option+T (Mac) to add an empty block before it, type /site logo and press Enter. You can also use the blue + inserter at the top left and search for “Site Logo”.

Inserting a Site Logo block with the slash command
The slash command shows Site Logo first.

Because we had already set a logo in Identity, the block showed it straight away. If you have none yet, the block lets you upload one.

Step 3: Set the logo size

With the logo selected, set Image width in the sidebar. It started at 120 px, which was too big for this header, so we used 48 px. Link image to home was on by default.

Site Logo block settings with image width set to 48
Site Logo settings: width, link to home, and Use as Site Icon.
Header in the editor with the logo added
The header in the editor with the logo added.

Step 4: Save

Click Save at the top right, then check your site (purge your cache if you use a caching plugin).

The live header with the new logo
The live header after saving.

What we noticed: the site title moved to the middle. The header row spreads its blocks across the width, so with three blocks the title ends up in the center. If you want logo and title together on the left, select both and group them (block toolbar → Group) so they act as one block.

Other header changes you can make the same way

  • Edit the menu: click the Navigation block to add, remove or reorder links.
  • Add a button: insert a Buttons block (for example “Contact”).
  • Switch layout: pick another design in the sidebar Design list.
  • Classic themes: look in Appearance → Customize (often a “Header” section) or the theme’s own options page.

Frequently asked questions

Why doesn’t my logo show in the header?

Your header has no Site Logo block. Setting a logo in Identity is not enough; add the block as shown in Step 2.

Will a theme update undo my header changes?

No. Site Editor changes are saved in your database, not in the theme files.

Can I have a different header on some pages?

Yes, with templates: assign a template that uses another header template part to those pages.

Additional resources

Leave a Reply

Your email address will not be published. Required fields are marked *