Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Change the Header in WordPress (Logo, Menu and Layout)

How to Change the Header in WordPress (Logo, Menu and Layout)

Short answer

To change the header in a block theme, go to Appearance > Editor, open Patterns > Template Parts > Header, edit the logo, site title and Navigation blocks, then click Save. In a classic theme, use Appearance > Customize for the logo, header layout and colours, and Appearance > Menus for links. Page builders like Elementor Pro can replace the header entirely.

Key takeaways

  • Block themes edit the header as a template part in the Site Editor.
  • Classic themes change the header through the Customizer and Menus screens.
  • The site logo, site title, navigation and any buttons are the main header parts.
  • Edit header.php only in a child theme, never in the parent theme.
  • Test the header on mobile, since menus collapse into a toggle on small screens.

What controls the header in WordPress?

Your theme controls the header. In block themes it is a template part made of blocks, while in classic themes it comes from a PHP template plus options in the Customizer and the Menus screen.

So the first step is knowing which kind of theme you use. Look under Appearance: an Editor item means a block theme, while Customize and Menus without Editor mean a classic theme.

The header usually holds the site logo or title, the main navigation menu and sometimes a search icon, a button or contact details. Each of these is changed in a slightly different place.

How do you change the header in a block theme?

Go to Appearance > Editor, open Patterns, choose Header under Template Parts, edit the blocks you want, and click Save; the change applies to every template using that header.

  1. Go to Appearance > Editor
  2. Click Patterns, then open Header under Template Parts
  3. Click the Site Logo, Site Title or Navigation block to edit it
  4. Use the block toolbar and sidebar to change layout, colours and spacing
  5. Add blocks such as Buttons or Search with the plus button
  6. Click Save

The WordPress documentation on the Site Editor explains the editor's panels and how template parts work.

For a deeper walk through block-theme headers, see our guide on editing the header in a block theme, which covers sticky headers, alignment and multiple header variations.

How do you change the header in a classic theme?

Open Appearance > Customize and look for Site Identity, Header, Header Builder or Layout panels; there you can change the logo, header layout, colours and sometimes sticky or transparent header options.

Each theme organises these options differently. Feature-rich themes often include a drag-and-drop header builder, while simple themes may only offer a logo upload and colours.

The Customizer documentation shows how the live preview works. Changes appear in the preview before you click Publish, so you can experiment safely.

If your theme supports a header image, you will find a Header Image panel in the Customizer. Upload an image at the recommended size shown there to avoid awkward cropping.

How do you change the logo in the header?

In block themes, click the Site Logo block in the header and replace the image; in classic themes, go to Appearance > Customize > Site Identity and choose a new logo.

Use a logo file with a transparent background, ideally SVG or a PNG at about twice the display size so it stays sharp on high-resolution screens.

Set the logo width in the block settings or Customizer rather than uploading a huge image. A very large logo file slows down every page.

If you want to remove a WordPress logo or credit rather than your own, our guide on removing the WordPress logo from a website covers that.

How do you change the header menu?

In block themes, select the Navigation block in the header and add, remove or reorder links; in classic themes, edit the menu under Appearance > Menus and assign it to the primary or header location.

Keep the main menu short, ideally five to seven top-level items. Too many links make the header crowded and harder to use on smaller screens.

Use clear labels that match what visitors look for, such as Services, Pricing and Contact. The W3C's menus tutorial explains how to make navigation accessible.

If menu changes do not save, a server limit may be cutting off large menus. Our guide on fixing a menu that is not saving explains the fix.

How do you add a button or contact details to the header?

In block themes, add a Buttons or Paragraph block inside the header's row group; in classic themes, look for header button or top bar options in the Customizer, or add a custom link styled as a button.

A single clear call to action, such as Book a call or Get a quote, works better than several competing buttons.

Keep contact details short. A phone number or email in a slim top bar above the main header is a common pattern for local businesses.

How do you make the header sticky?

In block themes, select the header group and set its position to Sticky in the block settings, where your theme supports it; in classic themes, look for a sticky header option in the Customizer.

A sticky header stays visible as visitors scroll, which keeps navigation within reach on long pages.

Keep sticky headers slim, especially on mobile. A tall header that never leaves the screen takes up space visitors want for content.

How do you design a custom header with a page builder?

With Elementor Pro or a similar builder, create a Header template in the Theme Builder, design it with widgets, and set display conditions so it replaces the theme's header across the site.

This offers the most design freedom, including different headers for different sections of your site. The cost is that your header now depends on the builder plugin.

Our guide on how to use Elementor in WordPress covers the basics before building theme templates.

Should you edit header.php?

Only in a child theme. Editing the parent theme's header.php is undone by the next theme update, so copy the file into a child theme and edit the copy.

Keep the wp_head function call in place. Plugins and WordPress itself use it to add styles, scripts and meta tags, and removing it can break SEO and tracking.

Our explainer on what a child theme is shows how to create one safely.

How do you keep the header fast and stable?

Compress the logo, avoid large header sliders, limit custom fonts, and reserve space for the logo and menu so the page does not shift while loading.

Headers appear at the top of every page, so anything heavy there affects your whole site. Layout shifts in the header are a common cause of poor Cumulative Layout Shift scores.

Google's web.dev guide to Cumulative Layout Shift explains how to spot and fix shifting elements.

Set width and height on the logo image, and avoid injecting banners above the header after the page loads.

What should a good header include?

A good header shows who you are and where visitors can go: your logo or site name, a short main menu, and at most one clear action, all wrapped in a proper header landmark.

Most themes output the HTML header element for you, which tells browsers and assistive technology where the site header starts and ends.

Resist adding everything to the header. Social icons, long taglines and secondary links usually work better in the footer, where they do not compete with your main navigation.

Ask a few people to find a key page from your homepage. If they hesitate, simplify the menu labels before adding anything else.

How do you check the header on mobile?

Use the mobile preview in the Site Editor or Customizer, then open the site on a real phone to check the menu toggle, logo size and any buttons.

On small screens, most themes collapse the menu into a toggle, often called a hamburger menu. Make sure it opens, closes and works with a keyboard.

If the header looks crowded on mobile, hide less important items on small screens, such as a secondary menu or contact details.

Why are header changes not showing?

Clear your caching plugin, server cache and browser cache, check that you edited the right header template part, and make sure no page builder template overrides the theme header.

Caching is the usual culprit. Your change is saved, but an older copy of the page is still being served.

If the change appears for you but not for visitors, a CDN may be holding an old copy. Purge the CDN cache as well, then check again in a private browser window.

Frequently asked questions

Where is the header in the WordPress Site Editor?

Go to Appearance then Editor, open Patterns and select Header under Template Parts. You can also open any template and click the header area at the top to edit it directly.

How do I change the header menu in WordPress?

In a block theme, edit the Navigation block in the header. In a classic theme, edit the menu under Appearance then Menus and assign it to the header or primary location.

Can I have a different header on certain pages?

Yes. In block themes, create another header template part and use it in a custom template. Page builders such as Elementor Pro let you set display conditions for different headers.

Why is my logo blurry in the header?

The image is probably too small for high-resolution screens. Upload an SVG or a PNG about twice the size it displays at, then set the display width in the block or Customizer settings.

Is it safe to edit header.php?

Only in a child theme. Changes to the parent theme's header file are lost on theme updates, and removing the wp_head call can break plugins, SEO tags and tracking.

Sources

  1. Site Editor WordPress.org Documentation
  2. Customizer WordPress.org Documentation
  3. Menus tutorial W3C Web Accessibility Initiative
  4. Cumulative Layout Shift web.dev
  5. The header element MDN Web Docs

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.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.