Home  >  Article  >  CMS Tutorial  >  How to add a secondary menu in wordpress

How to add a secondary menu in wordpress

下次还敢
下次还敢Original
2024-04-16 02:24:13856browse

How to add a secondary menu to your WordPress website

WordPress’ menu system allows you to easily create multi-level menus, including secondary menus. Here is a step-by-step guide to adding a secondary menu to your website:

Step 1: Create the Main Menu

  • Navigate to Appearance > menu".
  • Click "Create New Menu".
  • Enter a name for your menu.
  • Click "Create Menu".

Step 2: Add Top-Level Menu Item

  • Hover your mouse over the "Custom Links" section on the left.
  • Click "Add Custom Link".
  • Enter the link and label for the top-level menu item.
  • Click "Add to Menu".

Step 3: Create Secondary Menu Item

  • Hover your mouse over the top menu item.
  • Click on the arrow icon that appears.
  • Select "Add Submenu".

Step 4: Add links and labels for the secondary menu items

  • Enter the links and labels for the secondary menu items.
  • Click "Add to Submenu".

Step 5: Set the menu location

  • In the "Menu location" drop-down menu, select the location where you want the menu to appear (for example, "Main menu").
  • Click "Save Menu".

Step 6: View your secondary menu

  • Refresh your website page.
  • Your secondary menu will appear at the location of your choice, and submenu items will appear below the top-level menu items.

The above is the detailed content of How to add a secondary menu 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