How to Edit the Header in WordPress

Recently, one of our readers asked us for step-by-step instructions on how to edit the header in WordPress since they couldn’t find anything to guide them from scratch.

While this is something really basic, we thought this was an excellent opportunity to help those starting out with their WordPress journey.

Which editor you use depends on the theme running your site, so this guide covers both routes. I’ll start by helping you work out which one you have, then walk through the changes themselves.

How to Edit the Header in WordPress

With the latest version of WordPress, you can use the interactive and user-friendly Site Editor to customize and brand your website and create a custom header easily.

Since most new WP installations come with the Twenty Twenty-Four Theme, the site editor is quite helpful for several header customizations:

  • Fonts
  • Colors
  • Button Styling
  • And more

Themes built before the block era hand you the older Theme Customizer instead of the Site Editor, and the header controls sit somewhere completely different.

What Is a WordPress Header?

Your header is the strip that runs across the top of every page on your site, and it usually holds your logo, your site title, and your main navigation menu.

Because it lives in a template rather than on an individual page, editing it once changes it everywhere.

The head section is invisible HTML near the top of your page that holds meta tags and scripts, while a heading is a piece of text inside your content like an H1 or an H2.

Both get confused with the header constantly, but neither one is what you change when you want a new logo or a different menu.

Which Header Editor Does Your Theme Use?

Hover over Appearance in your WordPress dashboard to find out which one you have. An Editor option means your theme is a block theme, and everything from Step 1 onward applies to you.

If the only option there is Customize, you’re on a classic theme and the Customizer section further down is the one you want.

WordPress admin dashboard with Appearance menu expanded to Customize option highlighted.

Twenty Twenty-Five ships with WordPress itself, and most free block themes released in the last couple of years work the same way.

Classic themes are still everywhere though, and popular ones like Astra, GeneratePress, OceanWP and Kadence run their headers through the Customizer or through their own settings panel.

Step 1: Access the Site Editor

From your WordPress Dashboard, simply navigate to Appearance and then click on the Editor option from the menu.

WordPress select editor in appearance

This will redirect you to the Site Editor, where you can customize the appearance of your website using the block editor. Open up the options in Patterns.

site editor select patterns

Now, all you have to do is scroll down until you can see the Template Parts section and then click on Header to open up its options.

template parts select header

On the right side of the screen, click on the Header image to open up the customization options available in the Site Editor and click on the Edit icon.

click on edit icon

You will now be redirected to the Block Editor of WordPress, where you can start by adding your logo, navigation, social icons, and even a CTA button (if needed).

Once you’re in the Block Editor for the Header of your website, click on the List View icon so that it’s easy to know what elements are included in the WordPress header.

header list view

Expand all the Blocks included in the List View, click on the first Row item, and set the Alignment to Full Width to begin customizing the header template.

set row to full width

Now, all you have to do is click on the Site Logo option in List View and click on the Upload icon in the header preview section.

upload site logo

You can choose to upload your logo through the Upload Files tab, or simply select the file from your existing Media Library.

select site logo

If needed, you can use the Resize Dots to change the dimensions and size of the site logo, based on your specific needs or requirements.

resize dots for site logo

Great job! That’s all you need to do for uploading your Site Logo to the header. Now, let’s move on to the next step of adding your Site Title!

Step 3: Add Site Title

Adding the Site Title in your website header is equally as simple as uploading your Site Logo on the WordPress theme. Simply click on Site Title from the List View.

select site title from list view

Then, similar to how we changed the site logo earlier, click on the block that says “Write site title…” and add your Site Title inside it.

add site title

As you can see, your theme’s header is now slowly coming into shape. For the next step, we’re going to add some navigational elements to your header.

Step 4: Add Page Navigations

To add your pages to the header, simply click on Navigation from the List View, and then click on the Edit option for its block.

edit navigation block

This will take you to the dedicated Block editor page for the Navigation element, where you can add new pages and their links via the Plus icon.

add pages to navigation

This will complete the look of your header, but as you can see, it looks too simple and there’s much room for improvement!

header preview

Let’s add a bit of styling to your Header now to make it look more visually appealing and match the color tones of your website.

Step 5: Change the Background Color

One of the most basic modifications you can make to the header is to change its background color. To do so, click on the first Row and open up its Settings.

row block settings

You will now be able to see the Block options for the selected Row. All you have to do now is click on the Styles icon next to the gear (settings) icon.

row styles settings

This will open up numerous options for the selected Row, where you can modify the Color, Background Image, Typography, and Dimensions.

You can explore these to make your header look more appealing. Since we just needed to change the color, we selected white for the Text and black for the Background.

change background color and text

As you can see, the header on the front end looks much better now and gives the website a more complete look.

header frontend preview

Do you want to make further modifications to the header, like inserting some social icons and a CTA button? Well, the process is simple!

Step 6: Add Social Icons and CTA Button

To add social icons and a CTA button, you’ll need to add a new Row. Click the Plus (+) icon and select the Row block.

insert row block

Next, drag the newly added Row block above the existing row so that you can freely customize it without affecting the existing header.

drag row above

After that, click on the (+) button inside the new Row and search for and select the Social Icons block.

insert social icons

Similar to how we added pages in the Navigation, click the (+) button to insert Social Media Widgets for whichever platforms you prefer.

add multiple social icons

Once done, select the Row again from List View and click on the (+) button again to add a Button block to your header.

insert button block

All you have to do now is give your button a text like “Book Now!” and update its Link to set up a redirect for website visitors.

add link to button

To make it all come together, select the Row again and set the Alignment to Full Width as we did with the first row.

set row to full width

Then, to give this section a more appealing look, use the Change items justification menu and select the Justify items right option.

row justify items right

And there you have it! Your header is now complete and looks perfect. Simply click the Save button at the top to avoid losing any changes.

complete header preview

How to Edit the Header in a Classic WordPress Theme

Classic themes route header changes through the Theme Customizer, which is a live preview panel rather than a block canvas.

Go to Appearance » Customize and you’ll get your site on the right with a settings sidebar on the left. Most of what you need sits in three or four panels of that sidebar:

  • Site Identity: Your logo, site title and tagline, usually the first thing to set
  • Menus: Which pages appear in your navigation and in what order
  • Colors: The header background and text colors
  • Header Image: A banner behind the whole strip, offered by many themes but not all

Astra puts almost everything under Header Builder, GeneratePress uses Layout » Header, and OceanWP splits its options across Header and Typography, so the exact panel names shift from theme to theme.

If you can’t find a control, click directly on the header in the live preview, since most themes will jump you to the matching panel.

Premium themes sometimes keep their best header options out of the Customizer entirely and put them in a dedicated top-level menu instead. Check for a menu item named after your theme before assuming a feature is missing.

The Customizer handles your footer from the same panel set, so it’s a good moment to add a contact form to your footer while you’re in there. Nothing goes live until you hit Publish at the top of the sidebar.

Add Your Logo to Email Header in WordPress

Consider adding your logo to an email header to add consistent branding that also trickles down to the emails being sent from your WordPress website.

It’s easy to change how Email Notifications work in WPForms. First, go to WPForms » Settings and click on the Email tab.

wpforms email settings

Pick any style that best suits your branding from the Template section and hit the Choose button to apply it.

choose modern template

After that, to add your site logo to emails, navigate to the Header Image section and click on the Upload Image button.

upload header image

Once you have uploaded your image, select the desired size for the image to be used in your email notifications from a dropdown menu.

email template header image

Following this, simply click on the Preview Email Template link located under the Typography dropdown menu.

email preview

A new tab will open in your browser where you can see a preview of your notification email template with your site logo!

FAQs about Editing the Header in WordPress

Learning how to edit the header in WordPress is a popular topic among our readers. Here are answers to some common questions about it.

How do I customize my header in WordPress?

To customize your header in WordPress, navigate to your dashboard and go to Appearance » Customize. Here, you’ll find the Header section. Click on it to explore various options, such as changing the logo, adjusting the header layout, colors, and other elements. Some themes offer additional header options to tweak to match your style.

How do you edit header buttons in WordPress?

Editing header buttons in WordPress typically involves accessing the Customizer through Appearance » Customize. Once there, look for Header or Menu settings. You can edit buttons by changing their text, links, and styles or by adding new items if your theme supports it. If required, you can also add some custom code to edit header buttons.

How do I edit the header logo in WordPress?

On a block theme, open Appearance » Editor, edit the Header template part, then select the Site Logo block and upload your image. On a classic theme, go to Appearance » Customize » Site Identity and use the Select logo button. Both routes set the logo site-wide, so you only have to do this once.

Can I make my WordPress header sticky?

Select the outermost Group block that wraps your Header template part and set its Position to Sticky in the block settings sidebar, which works on any block theme without a plugin. Classic themes usually ship a sticky header toggle in their own options panel, and if yours doesn’t, a sticky header plugin will do the job.

Can I edit the WordPress header without coding?

Everything in this guide happens through the WordPress admin with no code at all, whether you’re using the Site Editor or the Customizer. Editing the header.php file directly is an option for developers who need markup-level changes. That route means working in a child theme so a theme update doesn’t wipe your changes, and almost nothing a typical site owner wants from a header requires it.

What is the difference between a WordPress header and a heading?

A header is the template area at the top of your site that carries your logo and navigation on every page. A heading is a single line of text inside your content, marked up as an H1 through H6, that breaks an article into sections. Changing your header affects the whole site, while changing a heading affects only the page it sits on.

Next, Learn How to Make a Multi Step Form in Elementor

Ever wondered how to increase user engagement and lead generation on your website with an Elementor multi-step form? These forms guide users through the process step by step, making it less overwhelming and more user-friendly.

Build Your WordPress Form Now

Ready to build your form? Get started today with the easiest WordPress form builder plugin. WPForms Pro includes lots of free templates and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on Facebook and  X (Twitter) for more free WordPress tutorials and guides.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPForms is funded, why it matters, and how you can support us.

Hamza Shahid

Hamza is a Writer for the WPForms team, who also specializes in topics related to digital marketing, cybersecurity, WordPress plugins, and ERP systems. Learn More

The Best WordPress Drag and Drop Form Builder Plugin

Easy, Fast, and Secure. Join over 6 million website owners who trust WPForms.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by Cloudflare Turnstile and the Cloudflare Privacy Policy and Terms of Service apply.