To edit or delete an existing menu in WordPress, one must follow a systematic approach through the WordPress Dashboard. This process is integral to managing the navigational structure of a website, ensuring that users can efficiently access various sections and content. Below is a comprehensive guide detailing the procedures for both editing and deleting menus in WordPress.
Accessing the Menus Section
1. Log into the WordPress Admin Dashboard:
Begin by logging into the WordPress admin area. This is typically done by appending `/wp-admin` to your website's URL (e.g., `www.example.com/wp-admin`).
2. Navigate to the Menus Section:
Once logged in, locate the sidebar on the left-hand side of the dashboard. Hover over the "Appearance" tab to reveal a dropdown menu. Click on "Menus" to access the Menus management page.
Editing an Existing Menu
1. Select the Menu to Edit:
On the Menus page, you will see a dropdown list labeled "Select a menu to edit." Choose the menu you wish to modify and click the "Select" button. This action loads the menu items into the editor.
2. Add New Items to the Menu:
To add new items, utilize the "Add menu items" panel on the left side of the screen. This panel includes options such as Pages, Posts, Custom Links, and Categories. Check the box next to the desired items and click the "Add to Menu" button. The selected items will appear at the bottom of the menu structure on the right.
3. Rearrange Menu Items:
To rearrange the order of menu items, click and drag each item to the desired position. You can create sub-menu items (dropdown menus) by dragging an item slightly to the right beneath another item.
4. Edit Existing Menu Items:
Each menu item has an arrow on its right side. Clicking this arrow expands the item, revealing fields where you can change the Navigation Label, Title Attribute, and other settings. The Navigation Label is the text that will appear in the menu.
5. Remove Items from the Menu:
To remove an item, expand it by clicking the arrow and then click the "Remove" link at the bottom of the expanded item.
6. Save the Menu:
After making the desired changes, click the "Save Menu" button to apply your modifications.
Deleting a Menu
1. Select the Menu to Delete:
Similar to editing, first select the menu you wish to delete from the "Select a menu to edit" dropdown and click "Select."
2. Delete the Menu:
Once the menu loads, click the "Delete Menu" link located at the bottom of the menu structure. A confirmation dialog will appear. Confirm the deletion to permanently remove the menu.
Additional Considerations
– Menu Locations:
WordPress themes often support multiple menu locations (e.g., Primary, Secondary, Footer). Ensure that the menu you are editing or deleting is assigned to the correct location. This can be managed in the "Manage Locations" tab on the Menus page.
– Custom Menu Widgets:
If you are using Custom Menu widgets in your theme, ensure that any changes to menus are reflected in these widgets. Navigate to "Appearance" > "Widgets" to manage widget settings.
– Menu Settings:
Below the menu structure, there are options to automatically add new top-level pages to the menu and to assign the menu to specific theme locations. Adjust these settings as needed.
Practical Example
Consider a scenario where you have a website with the following menu structure:
– Home
– About Us
– Services
– Web Development
– SEO
– Blog
– Contact
To add a new "Portfolio" page under "Services," follow these steps:
1. Select the Menu:
Navigate to "Appearance" > "Menus" and select your primary menu.
2. Add New Item:
In the "Add menu items" panel, find the "Pages" section, check the "Portfolio" page, and click "Add to Menu."
3. Position the New Item:
Drag the newly added "Portfolio" item beneath "Services" and slightly to the right to create a sub-menu.
4. Save Changes:
Click "Save Menu" to apply the changes.
To delete the "Blog" menu item:
1. Select the Menu:
Navigate to "Appearance" > "Menus" and select your primary menu.
2. Remove the Item:
Expand the "Blog" menu item and click "Remove."
3. Save Changes:
Click "Save Menu" to apply the changes.
These procedures ensure that you can effectively manage the navigational structure of your WordPress website, enhancing user experience and accessibility.
Other recent questions and answers regarding Building and maintaining menus:
- How can you assign a menu to different locations defined by your WordPress theme?
- What methods can be used to rearrange the order of menu items in WordPress?
- How can you add different types of items, such as pages, posts, custom links, and categories, to a menu in WordPress?
- What steps are involved in creating a new menu in WordPress?