WordPress GuideBuild → Edit a Header

How to edit a header in WordPress

Your site’s header is the first thing most visitors will see—it sets the tone for your brand and helps users navigate your site. Whether you want to update your logo, add custom colors, or insert tracking code, editing the WordPress header is a core part of personalizing your site.

Let’s walk through every method available for editing a header in WordPress, step by step, no matter what theme you’re using.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

Understanding the WordPress header

The header is the top section of your website, and it usually includes:

How you can edit the header depends on the type of theme you’re using:

Let’s start with the most modern method.

How to edit the header with the Full Site Editor

If you’re using a block theme (like Twenty Twenty-Four or any theme labeled as FSE), you’ll use WordPress’s Full Site Editor to customize the header.

Accessing the Full Site Editor

Customizing the header in the visual editor

You’ll now see your header laid out in blocks.

You can:

Save and publish changes

When you’re done customizing:

Now visit your site to see the updated header.

How to edit the header using the Theme Customizer

If your theme doesn’t support Full Site Editing, you’ll likely use the Theme Customizer instead. This method applies to classic themes like Astra, OceanWP, or older default themes.

Open the Customizer

Make changes to header content

Look for a panel labeled Header, Site Identity, or something theme-specific like Top Bar Settings.

From here you can:

Save and publish

Click the Publish button at the top of the left sidebar to apply all your changes.

Editing headers with theme builder tools

Many premium themes include their own drag-and-drop header builders that are more flexible than the default editor.

Theme-specific header editors

Themes like Divi, Avada, or Astra Pro offer header builder modules.

Typically, you would:

These tools often include advanced options like sticky headers, transparency, and conditional display rules.

Add custom code to your WordPress header

If you need to insert tracking scripts, meta tags, or verification codes into your header, you have a couple of options—one safe and beginner-friendly, the other more technical.

Using a plugin

For non-developers, the easiest option is Insert Headers and Footers.

To use it:

This method safely adds your code without touching any theme files.

Editing header.php manually (for advanced users)

If you’re comfortable with PHP and file editing:

Warning: Editing this file incorrectly can break your site. Always back up your site first. Also, use a child theme to avoid losing changes when the theme updates.

Common header changes you can make

Here are a few ideas and examples of what you might want to change in your header:

Troubleshooting header changes

If your edits don’t appear on the live site:

Additional resources

How to build a WordPress site →

A complete beginner’s guide that covers 9 key steps to a successful launch

Website builders vs. WordPress →

With website builders and WordPress at your disposal, you don’t need to expend your energy or savings to build a website that suits your brand.

How to use WordPress Gutenberg blocks →

A complete beginner’s guide to Gutenberg blocks