How to Trash, Unpublish, and Hide Menu Items in Joomla 4.0

How to Trash, Unpublish, and Hide Menu Items in Joomla 4.0 Hero Image

Occasionally you will need to hide menu items when working with your Joomla 4.0 website. When you have multiple menus on different pages you may need to simply not include items on a particular page.

You can also trash menu items or simply unpublish them in order to keep them for later use. Learn how to change a menu item in your existing menu so that it appears only when you want it to appear.

Looking for a new home for your new Joomla 4.0 website? Check out InMotion’s fast VPS hosting hosting solutions for secure, performance-oriented servers.

Trash a Menu Item

Trashing a menu item does not immediately delete the menu item from your site. Trashing a menu item does automatically unpublish that item, but it also removes it from the menu list. Trashed items will not be available to your website visitors. Follow the steps below to trash a menu item in your Joomla 4.0 site.

  1. Log in to the Joomla Administrator Dashboard.
  2. Click on Menus in the main menu located at the left side of the dashboard page.

    Joomla 4.0 Menus main
  3. Select the Site (page) menu where the menu item you wish to trash is located. This will list the menu items on that site (page).

    Select menu site - Joomla 4.0
  4. Click on the checkbox next to the menu item that you wish to delete.

    Select a menu item
  5. Select Trash from the Actions drop-down menu at the top of the page.

    Select Trash from the Actions drop-down menu

Items that are trashed are automatically removed from the menu and the menu is automatically saved. You will also see a green bar confirming that the item has been unpublished.

How to Empty the Trash to Delete Menu Items

In order to delete the menu item permanently, you will need to remove it from the trashed list. Follow the steps below to permanently delete a menu item that has been trashed:

  1. Log in to the Joomla Administrator Dashboard.
  2. Click on Menus in the main menu located at the left side of the dashboard page.

    Joomla 4.0 Menus main
  3. Select the Site (page) menu where the previously trashed menu item is located.

    Select menu site - Joomla 4.0
  4. Click on Filter Options in the filtering menu above the table listing the menu items.f

    Click on Filter Options button
  5. Click on the Select Status drop-down menu then click on Trashed.

    Click on Trashed
  6. You will then see any trashed items in that menu. In the actions tool bar at the top of the page you will see a button labeled Empty Trash. Select the trashed item(s) then click on Empty Trash.

    Empty trash

Unpublish a Menu Item

Unpublishing a menu item removes the item from the menu and from its availability to website visitors. However, it does not delete the item from the menu list that you can see in the administrator dashboard. Follow the steps below in order to unpublish a menu item:

  1. Log in to the Joomla Administrator Dashboard.
  2. Click on Menus in the main menu located at the left side of the dashboard page.

    Joomla 4.0 Menus main
  3. Select the Site (page) menu where the menu item you wish to unpublish is located.

    Select menu site - Joomla 4.0
  4. In the menu list, click on the check box for the item that you want unpublished. Note that a published item has a circled green checkmark that you can click on to instantly unpublish a menu item. If you want to unpublish multiple items, then select the checkbox to select multiple items.

    2 ways to unpublish
  5. If you have select multiple menu items, then go to the actions toolbar at the top of the page, and then click on the drop-down menu.
  6. Select Unpublish. When the menu is unpublished you will see a green bar confirming the action.

How to Hide a Menu

When you decide that you want to hide a menu item, you will need to first be aware of the menu item want to hide. Like the other actions that you can take with Joomla 4.0 menu, you will need to have access to the administrator dashboard. Hiding a menu item simply makes it inaccessible without having to unpublish the item. Follow the steps below to hide a menu item:

  1. Log in to the Joomla Administrator Dashboard.
  2. Click on Menus in the main menu located at the left side of the dashboard page.

    Joomla 4.0 Menus main
  3. Select the Site (page) menu where the menu item you wish to hide is located.

    Select menu site - Joomla 4.0
  4. Click on the menu item that you wish to edit. This will check in the menu item. Note that if the item is checked out (with a padlock symbol), then you will need to check in the item before you can edit it. You can click on the padlock to check in an item.

    Select a menu item
  5. Click on the tab labeled Link Type.
  6. Scroll to the bottom of the Link Type tab and you will see two sliders labeled: Display Menu Item Title and Display in Menu. Menu items are displayed by default. So the Display in Menu slider will be set to Yes. Click on the Display in Menu slider so that it says No.

    Link type - sliders
  7. At the top of the page, click on either the Save button or the Save and Close button.

When you look at the menu list again, you will see that the menu item will be labeled “hidden.” Website visitors will not be able to see it.

Congratulations! You now know how to trash, unpublish, or hide menu items on your Joomla 4.0 website! To learn more, check out the Joomla 4.0 education channel in our InMotion Hosting Support Center website!

Secure VPS HostingEnjoy high-performance, lightning-fast servers with increased security and maximum up-time with our Secure VPS Hosting!

check markLinux VPS check markcPanel or Control Web Panel check markScalable check markWebsite Migration Assistance

Linux VPS Hosting

AC
Arnel Custodio Content Writer I

As a writer for InMotion Hosting, Arnel has always aimed to share helpful information and provide knowledge that will help solve problems and aid in achieving goals. He's also been active with WordPress local community groups and events since 2004.

More Articles by Arnel

Was this article helpful? Join the conversation!