How to customize WordPress website header?

Designing a beautiful banner on a WordPress website (Banner) is a great way to showcase the culture of your website. It makes navigation easier and improves the aesthetics of your website from a design perspective.

Many themes come with pre-designed headers, or you can customize them, for example:

  • Add Social Media Links
  • Add drop-down menu
  • Add Search Options

via WordPressFull Site Editorfunction, you can use theBlock EditorCreate professional headers without writing custom code or relying on plugins.

Throughout this guide, it will show 3 different ways Customize your WordPress header while sharing some advanced header customization tips and how to create multiple header templates.

图片[1]-如何自定义WordPress页眉:完整指南与3种最佳方法

What is a WordPress Header?

The header is the topmost part of a website and usually appears at the top of every page of a website. Typically, the header will contain the following:

  • Website Logo
  • search function
  • Basic navigation menus (such as blogs,About Us,Contact Usetc.)

It is possible to customize the site's header to make it more useful to visitors, for example by adding:

Next, see how to customize the header of your WordPress website.

Ways to Customize WordPress Header

Method 1: Using WordPress Theme Customizer

many of WordPress ThemesRemaining support WordPress Theme Customizer (Theme Customizer), which can be used to customize the look and feel of the site. For example, I'm using the Twenty Twenty | WordPress Theme theme, which supports the theme customizer as it was released before WordPress 5.9 introduced full site editing capabilities.

Note: This approach works for older topics as newer topics are moving to theBlock-based architecture. In the next section, we'll learn howCustomize headers with full site editing features, continue down the page.

To access the WordPress Theme Customizer, go to the Appearance > Customization. If you do not see this option, it means that the site supports the full site editing feature.

图片[2]-如何自定义WordPress页眉:完整指南与3种最佳方法

existTwenty Twenty ThemeThere aren't many options for editing titles in the In fact, there is no section dedicated to editing titles. To customize the title, go to"Color."Partial changesTitle ColorThe

图片[3]-如何自定义WordPress页眉:完整指南与3种最佳方法

It can also be accessed by going to Theme OptionsIn the title addSearch OptionsThe

图片[4]-如何自定义WordPress页眉:完整指南与3种最佳方法

If you want to add the headerWebsite Logorespond in singingSite TitleYou can go to"Website logo"Options.

图片[5]-如何自定义WordPress页眉:完整指南与3种最佳方法

That's it. In Twenty Twenty In the theme, it is not possible to add or remove navigation menus or make further header customizations.

If using a theme that offers specialized header customization options such as AstraThen you can make more changes to the site's header.

exist Astra In the theme, you can go to Header Builder(Header builder) to customize the header of the site.

图片[6]-如何自定义WordPress页眉:完整指南与3种最佳方法

Now, there are tons of changes that can be made to the site's header. For example, we can start by updating the navigation menu. To do this step, go to "main menu"(Primary Menu)Options.

图片[7]-如何自定义WordPress页眉:完整指南与3种最佳方法

Now want to customize the existing navigation menu.

图片[8]-如何自定义WordPress页眉:完整指南与3种最佳方法

I'll click on "Configure Menu from Here > Primary Menu > + Create New Menu. Create New Menu".)

图片[9]-如何自定义WordPress页眉:完整指南与3种最佳方法

Name the new menu and click "Next, add the pages you want to link in the navigation menu.

图片[10]-如何自定义WordPress页眉:完整指南与3种最佳方法

Now, if noticed, the existing navigation menu will be removed.

图片[11]-如何自定义WordPress页眉:完整指南与3种最佳方法

To add a new menu, click "+ Add ItemsButton.

图片[12]-如何自定义WordPress页眉:完整指南与3种最佳方法

Now, I'm going to putHome page, Pricing page.respond in singingLoginAdd it to the header and click "PublishButton.

图片[13]-如何自定义WordPress页眉:完整指南与3种最佳方法

Now, you will see that the new navigation menu has been added to the site's header.

图片[14]-如何自定义WordPress页眉:完整指南与3种最佳方法

For further customization, a header can also be added to theSocial Media Links. At the bottom of the customization page, you'll see an Addgadgetoptions, as shown below:

图片[15]-如何自定义WordPress页眉:完整指南与3种最佳方法

Social widgets have been added to the site navigation menu.

图片[16]-如何自定义WordPress页眉:完整指南与3种最佳方法

Now.To add links to social widgets, click on the social gadget you just added.

图片[17]-如何自定义WordPress页眉:完整指南与3种最佳方法

A separate menu for adding links will now appear on the left side. Links can be added from this menu and the icon can be changed as desired.

图片[18]-如何自定义WordPress页眉:完整指南与3种最佳方法

Next, let's make some design changes to the header. It is necessary to enter the Design (DESIGN) Menu.

图片[19]-如何自定义WordPress页眉:完整指南与3种最佳方法

I'll add an underline effect to the navigation menu.

图片[20]-如何自定义WordPress页眉:完整指南与3种最佳方法

It will also change the text color of the navigation menu. When changed, the text color will be black, red when clicked, and blue when hovered.

图片[21]-如何自定义WordPress页眉:完整指南与3种最佳方法

It can be customized more as needed, but for the sake of a less complicated tutorial, I'll stop here. If we preview the site now, the header looks like this:

图片[22]-如何自定义WordPress页眉:完整指南与3种最佳方法

It's not pretty, but it does come customized. It can be customized to your liking.

Method 2: Customize with site-wide editing function

Now let's customize the header using WordPress' site-wide editing feature. It will switch to the Twenty Twenty-Four Topic. Changing a theme that supports block-based architecture reveals that the previous "The "Customize" option has been removedInstead of "Editor option. Click it to start the operation.

图片[23]-如何自定义WordPress页眉:完整指南与3种最佳方法

Once inside the editor, there are unlimited customization options. First, it will be like beforeCustomized Navigation Menu, because it's too confusing for me.

图片[24]-如何自定义WordPress页眉:完整指南与3种最佳方法

Ways to edit the navigation menu

  • Click on the navigation menu and then click on "Edit).
图片[25]-如何自定义WordPress页眉:完整指南与3种最佳方法
  • I just want to keep in the header "The Home, About, and Login pages.The
图片[26]-如何自定义WordPress页眉:完整指南与3种最佳方法
  • Once you are satisfied with the adjustment, click"Save"The
图片[27]-如何自定义WordPress页眉:完整指南与3种最佳方法

This is the new menu:

Next, add a background color to the header.

  • Select the one that contains the site title, logo and navigation menu.Row blockThe
图片[28]-如何自定义WordPress页眉:完整指南与3种最佳方法
  • Go to the block's settings in the"Colors" (Color)search underneath"Background"Options.
图片[29]-如何自定义WordPress页眉:完整指南与3种最佳方法

I added a gradient background color to the header. You should see the following effect when previewing:

Well, the navigation menu looks too small and crammed in the corners. Let's make the text slightly larger and add some spacing.

  • optionNavigation blockEnter "Stylesoption to change the text size to medium and add spacing between menu items.
图片[30]-如何自定义WordPress页眉:完整指南与3种最佳方法

The header should look much better now that it's previewed:

图片[31]-如何自定义WordPress页眉:完整指南与3种最佳方法

Next, we add a sub-menu to the navigation menu showing the different language options.

  • Add "Submenu blockand named it "LanguagesThe
  • Then, add the sub-menu items as shown below:
图片[32]-如何自定义WordPress页眉:完整指南与3种最佳方法

The preview results are as follows:

图片[33]-如何自定义WordPress页眉:完整指南与3种最佳方法

You can try to create completely unique navigation headers for WordPress websites with the full site editor, right?

Create multiple header templates

One of the great advantages of the WordPress website editor is the ability to create different headers for different templates.

Changing the appearance and style of the header is made easy with the Site Editor, which allows you to use the preset headers in block mode.

For example, I would like to create a unique header for an individual page, rather than a site-wide header.
I would select the template that I want to create individual headers for and then follow the steps below:

图片[34]-如何自定义WordPress页眉:完整指南与3种最佳方法
图片[35]-如何自定义WordPress页眉:完整指南与3种最佳方法

1. Delete existing header

When a template is selected, you will see that the header currently displayed is the one we created earlier.

Important Tip: Do not edit the existing header directly on this or any other template, as this will affect the header of the entire site.
Therefore, we need to delete this header and create a new one for the current template.

  • show (a ticket)List ViewThe
  • option"Header"ClickEllipses Icon > DeleteThe
  • This will delete the existing header.
图片[36]-如何自定义WordPress页眉:完整指南与3种最佳方法

The effect of header deletion is as follows:

图片[37]-如何自定义WordPress页眉:完整指南与3种最佳方法

2. Adding a new header

Now we can add a new header to the template. Optional:

  • Creating a new header from scratch.or
  • expense or outlayPreset Header Pattern (Premade Pattern Header)The

The text chooses to use the preset header mode with the following steps:

  • go into Patterns > HeadersThe
  • Choose a header pattern that meets the needs of a header that will only appear on individual pages or articles using this custom template, without affecting the entire site.
图片[38]-如何自定义WordPress页眉:完整指南与3种最佳方法

Here's what my template looks like with a preset header:

The style and content of the customized header can now be further adjusted as needed!

图片[39]-如何自定义WordPress页眉:完整指南与3种最佳方法

Method 3: Create a custom header using the page builder

Another way to customize the header is to use thepage builder. However, if the site uses a custom theme with strict layout rules and does not allow the use of page builders to override its header, then this method may not be suitable.

But if one is building a website from scratch, then page builder would be a good choice.

Here, I use Elementor The free version (with limited customization options) of

Step: Customize Header with Elementor

1. Go to Appearance Settings
strike (on the keyboard) Appearance > CustomizeThe

图片[40]-如何自定义WordPress页眉:完整指南与3种最佳方法

2. Select header and footer options
strike (on the keyboard) Header & Footer Options.

图片[41]-如何自定义WordPress页眉:完整指南与3种最佳方法

3. start designing
strike (on the keyboard) Start Designing option to edit the header using Elementor.

图片[42]-如何自定义WordPress页眉:完整指南与3种最佳方法

4. Select Header Theme
strike (on the keyboard) Header Theme Header (Header) Options.

图片[43]-如何自定义WordPress页眉:完整指南与3种最佳方法

5. Simple customization
Due to the limited customization options in the free version, here we can only demonstrate how easy it is to tweak the different options to customize the website header by changing the color options.

图片[44]-如何自定义WordPress页眉:完整指南与3种最佳方法

Here's how the header looks after I customized the colors:

图片[45]-如何自定义WordPress页眉:完整指南与3种最佳方法

reach a verdict

Above is our guide to customizing your WordPress header. We've described three different ways to do this: using the WordPress Theme CustomizerBy means of the Site-wide editing functionand the use of a program like Elementor Such a page builder.


Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by Banner1
THE END
If you like it, support it.
kudos15 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments