Portal - How to hide the level 3 and Level 4 category taxonomy topics in the navigation menu

janindiadoc_1
Tera Guru

Has anyone implemented a way to hide Level 3 and Level 4 topics from the mega menu while still keeping them accessible through navigation? We would like the mega menu to display only Level 1 and Level 2 topics. Lower-level topics (Levels 3 and 4) should not appear in the menu directly, but should still be accessible after selecting a Level 2 topic.

Example:

Level 1: HR
Level 2: Services
Level 3: Support
In this case, only “HR” and “Services” should appear in the mega menu, and “Support” should appear only after clicking into “Services.”

Is this possible?

2 REPLIES 2

itsvishalis
Giga Contributor

Yes, this is possible. You can customize the mega menu widget/navigation logic to display only Level 1 and Level 2 taxonomy topics while hiding Level 3 and Level 4 topics.

The lower-level topics can remain accessible by navigating through the Level 2 topic page.

You may need to:

  • Filter taxonomy topics based on hierarchy level
  • Modify the mega menu widget/server script
  • Use taxonomy relationships to load child topics dynamically after selection

So in your example:

  • HR → visible
  • Services → visible
  • Support → hidden from the mega menu but accessible after opening Services.