A website usually has its own navigation menu bar, which makes it easier for users to search by category. Then, when using WordPress to build a website, the navigation menu can generally be set directly in the background, and no other plug-ins or actions are required. Now I will teach you how to add a navigation menu bar in WordPress based on my personal experience. There are two ways to set it up, I will write them separately.
1. Set the alias in the category directory and then add it directly
This method is to set the alias in the category directory first and then add it directly. For example, if we move the mouse pointer to "Article" in the WordPress background, select "Category Directory":
In the category directory, you need to put the "Name" and "Alias" "Fill them out separately. The name is the name displayed in the navigation bar, and the other is in the URL, so it is best to use English letters for convenience and conciseness.
#It doesn’t matter if you fill in the rest, and then add it to the new category directory. If it is already in the category directory, click "Edit" directly to change the name, alias and other information.
Then see "Appearance" on the left. When you put the mouse on it, some options will be displayed. Click "Menu":
In the edit menu, there is a "Category" box on the left. Clicking it will display the navigation of the category. You can select the directory you want to add to the navigation, and then click "Add to Menu". It will appear in the menu structure on the right, then click "Save Menu" in the upper right corner.
#In this way, you don’t need to set the navigation link. The prefix will be your main website by default and the suffix will be an alias, which is very convenient.
2. Customized links in the menu
There is another way to define all navigation and links by yourself, without using the ones in the category directory.
In this way, you can directly see that on the "Menu" in the appearance mentioned above, there is a "Custom Link" box:
Then fill in the link The URL and navigation menu name are enough. Remember to "Add to Menu" and save the menu after adding everything.
This method is also very simple, all customized. If the navigation and classification are different, you can set them here. Otherwise, it is recommended that the first method is better.
For more wordpress related technical articles, please visit the wordpress tutorial column to learn!
The above is the detailed content of How to add navigation menu bar to wordpress website navigation bar. For more information, please follow other related articles on the PHP Chinese website!

Choosing the Right Integrated Development Environment (IDE) for WordPress Development For ten years, I've explored numerous Integrated Development Environments (IDEs) for WordPress development. The sheer variety—from free to commercial, basic to fea

This tutorial demonstrates building a WordPress plugin using object-oriented programming (OOP) principles, leveraging the Dribbble API. Let's refine the text for clarity and conciseness while preserving the original meaning and structure. Object-Ori

Best Practices for Passing PHP Data to JavaScript: A Comparison of wp_localize_script and wp_add_inline_script Storing data within static strings in your PHP files is a recommended practice. If this data is needed in your JavaScript code, incorporat

This guide demonstrates how to embed and protect PDF files within WordPress posts and pages using a WordPress PDF plugin. PDFs offer a user-friendly, universally accessible format for various content, from catalogs to presentations. This method ens

WordPress is easy for beginners to get started. 1. After logging into the background, the user interface is intuitive and the simple dashboard provides all the necessary function links. 2. Basic operations include creating and editing content. The WYSIWYG editor simplifies content creation. 3. Beginners can expand website functions through plug-ins and themes, and the learning curve exists but can be mastered through practice.

People choose to use WordPress because of its power and flexibility. 1) WordPress is an open source CMS with strong ease of use and scalability, suitable for various website needs. 2) It has rich themes and plugins, a huge ecosystem and strong community support. 3) The working principle of WordPress is based on themes, plug-ins and core functions, and uses PHP and MySQL to process data, and supports performance optimization.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
