Home  >  Article  >  CMS Tutorial  >  How to customize the navigation bar in WordPress

How to customize the navigation bar in WordPress

尚
Original
2019-07-12 15:18:453140browse

How to customize the navigation bar in WordPress

The new custom navigation menu function of WordPress 3.0 makes it easier for us to visually operate the website menu. The most important thing is that we can combine Pages (page list) and Categories (Category list) is mixed in the custom menu.

1. First, log in to your WordPress management backend, enter the [Appearance – Menus (menu or navigation menu)] module in order, and enter the navigation menu setting page;

2. If you have not used or set up a menu before, you need to click the " " button on the upper right to add a new Menu Name, and then click the Create Menu button on the right to activate the new Menu (the name of the new menu in this example is header_menu), as shown below:

How to customize the navigation bar in WordPress

#3. After creating a new menu header_menu, the menu in the default state is empty; on this page On the left, you can see Theme Locations, Custom Links, Pages, Categories, etc.

In the content on the left, after selecting the page, category or custom link you want to display, click the Add to Menu button corresponding to each item to make the selected The column is added to the new menu header_menu on the right. Take adding Pages (page list) item as an example, as shown in the figure below:

How to customize the navigation bar in WordPress

is added to the new menu header_menu on the right. The columns appear in the form of a list. Now you need to use the mouse to drag up and down to arrange the display order of the menus; it should be noted that the added menus are all displayed at one level. If you want to create a two-level (multi-level) ) menu, you also need to use the mouse up, down, left, and right dragging methods to set up a second-level (multi-level) menu. Each right-moving space is a level, as shown in the following figure:

How to customize the navigation bar in WordPress

Detailed operation: Move the mouse to the menu bar to be moved, and when the mouse pointer changes to the moving state, you can drag the menu up, down, left, and right.

5. After setting your own menu order and level, remember to click the Save Menu button in the upper right corner to save the menu content settings.

6. After creating the menu header_menu content, select the menu item you want to use in the picture below on the left, and save it to complete the setting of the entire custom menu.

How to customize the navigation bar in WordPress

After saving, your custom menu will be set.

For more wordpress related technical articles, please visit the wordpress tutorial column to learn!

The above is the detailed content of How to customize the navigation bar in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn