How to Exclude Hidden Menu Items from a Sitemap in OSMap

Documentation for Joomla 3

By default, your Joomla 3 sitemap will include menu items you marked as "Hidden". In this document, you will learn how to exclude them from your sitemap.

Here is a screenshot with a few of such menu items:

list of menu items marked as hidden

You set a Joomla menu item as hidden by setting its parameter "Display in Menu" to option "No":

parameter display in menu option no

When your visitors view your Joomla sitemap with default settings, they will see those hidden menu items:

your sitemap includes the hidden menu items

Here is how you can exclude them if you wish so.

  • In your Joomla 3 administrator panel, go to "Components" > "OSMap Free/Pro":

go to components osmapfree or pro

  • You will see the "OSMap Free/Pro: Sitemaps" screen, as shown in the next image. In the top right corner of the screen, click "Options":

click options

  • This will bring you to the "OSMap Options" screen. Find the "Ignore Hidden Menus" parameter and set it to "Yes":

set the ignore hidden menus to option no

  • Check your Joomla sitemap now. You will see that now it doesn't include the hidden menu items.

Documentation for Joomla 5

By default, your Joomla 5 sitemap will include menu items you marked as "Hidden". In this document, you will learn how to exclude them from your sitemap.

Here is a screenshot with a few of such menu items:

list of menu items marked as hidden

You set a Joomla menu item as hidden by setting its parameter "Display in Menu" to option "No":

parameter display in menu option no

When your visitors view your Joomla sitemap with default settings, they will see those hidden menu items:

your sitemap includes the hidden menu items

Here is how you can exclude them if you wish so.

  • In your Joomla 5 Dashboard, go to "Components" > "OSMap Free/Pro" > "Sitemaps":

go to components osmapfree or pro

  • You will see the "OSMap Free/Pro: Sitemaps" screen, as shown in the next image. In the top right corner of the screen, click "Options":

click options

  • This will bring you to the "OSMap Options" screen. Find the "Ignore Hidden Menus" parameter and set it to "Yes":

set the ignore hidden menus to option no

  • Check your Joomla 5 sitemap now. You will see that now it doesn't include the hidden menu items.