Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

How to Set Up Magento 2 Top Navigation Menu [No code required]

Vinh Jacker | 11-11-2024

How to Set Up Magento 2 Top Navigation Menu [No code required]

Setting up a navigation menu is a must for Magento 2 stores. Without it, search engines can not index your website properly and you’ll lose a lot of customers since the top navigation menu is one of the most viewed and clicked sections.

If you’re starting a new business on Magento 2, then this blog is definitely for you. We will explain how the structure of category tier, and how to config a top navigation menu easily.

No need to be an expert developer or have vast experience in online business, just read our article and you’ll be able to do this task.

Category Tier in Magento 2

First of all, let’s learn about the category tier in Magento 2. There are 4 levels.

Level 1

The first level is the only seed category in Magento 2 default. It’s set as Default Category and doesn’t appear on the storefront menu. You can think of it as the parent of other smaller categories in the menu.

category-tier-level-1

Level 2

In Magento, the top navigation is typically an unresponsive main menu bar that spans the entire page, located just below the logo and site slogan on the frontend. When you hover or click on it, another menu slides down.

category-tier-level-2

Each top-level category in this navigation usually includes one or more subcategories. However, some top-level categories might not have any subcategories, such as “What’s New” or “Sale.”

In the Luma theme, the top-level categories include:

  • What’s New
  • Women
  • Men
  • Gear
  • Training
  • Sale

These categories are displayed in a line and may or may not have lower-tier categories under them.

Level 3

In the frontend, the Level 3 navigation in Magento is a responsive dropdown menu that appears under the top navigation category when hovered over or clicked. This menu contains smaller groupings of product divisions.

For example: Level 2: Women Level 3: Tops & Bottoms

category-tier-level-3

In the backend, these categories appear indented under their parent category, indicating their hierarchical position.

category-tier-level-3-sale

Level 4

In Magento, Level 4 navigation represents a deeper layer within the product hierarchy, providing specific product lines under the broader Level 3 categories. In the frontend, this level is typically shown as an additional right column menu that appears when clicking on a Level 3 option. Each Level 3 option can have multiple Level 4 sub-categories.

category-tier-level-4

In the backend, Level 4 categories are displayed with an even greater indentation compared to Level 3 categories, indicating their subordinate position.

category-tier-level

How to Set Up Magento 2 Top Navigation Menu

Create a category

create-category

  • Go to Catalog > Categories
  • Select Default Category and it will be highlighted in orange
  • Click Add Subcategory and fill out the necessary fields to create a new level 2 category, and modify its content
  • Press Save

After that, you can drag and drop new categories to set their display orders. Then, confirm your changes and go to the frontend to check again.

Setting top navigation depth

By setting the maximum depth, you can control the visibility of subcategories within the top navigation, enhancing the user experience by limiting the number of categories displayed in the navigation menu.

  • Go to Stores > Settings > Configuration > Catalog > Catalog > Category Top Navigation
  • Fill in Maximal Depth: leave it 0 if you don’t want to restrict navigation depth

set-maximum-depth

How to Fix the Top Navigation Menu Problems in Magento 2

1. Menu not showing

Magento store admins and developers often encounter this issue: the navigation menu might not appear on their website. This problem negatively affects the user experience and makes it difficult for customers to find their way around.

Step 1: Add a new root category

  • Go to Catalog > Categories
  • Select Add Root Category

add-root-category

  • Fill out the information in the General Information* tab:

    • Enable Category: Set Yes
    • Include in Menu: Set Yes
    • Category Name: Enter the root category name
    • Press Save

fill-new-root-category-fields

Step 2: Add a subcategory to the new root category

After you’ve created a new root category, you need to add a subcategory to it.

  • Click on the new category
  • Choose Add SubCategory

add-subcategory

  • Repeat the same steps when creating the root category: Enable Category, Include in the Menu, Enter Category Name
  • Save the changes

Note: Create as many subcategories as you need to.

Step 3: Choose the new Root Category

  • Go to Stores > Settings > All Stores
  • Open the main menu store by clicking on the link in Store column

open-main-menu-store

  • In the Root Category field, choose the new root category

select-new-root-category

  • Press Save Store to confirm your settings

Note: If it’s not in the Navigation Menu yet, flush your Magento Cache

2. Menu not working properly on mobile devices

Another common problem in Magento 2 is that the menu not working well in mobile view, frustrating many customers which is definitely not good for business.

The solution is actually very simple: just install a mobile menu extension. This plugin lets you customize your store’s mobile menu, ensuring it functions properly on all mobile devices. It also offers a user-friendly interface, making it easy for customers to navigate your website and find what they need.

Wrap up

The Magento navigation menu plays a crucial role in ensuring a smooth shopping experience, influencing how customers browse, locate products, and decide on purchases. With a good top navigation menu, stores can see significant changes right away.

Hope that with our blog, you can now find it easy to set up a Magento 2 navigation menu as well as fix related issues. Contact us if you have any questions or struggles.

Table of content
    Jacker

    With over a decade of experience crafting innovative tech solutions for ecommerce businesses built on Magento, Jacker is the mastermind behind our secure and well-functioned extensions. With his expertise in building user-friendly interfaces and robust back-end systems, Mageplaza was able to deliver exceptional Magento solutions and services for over 122K+ customers around the world.



    Related Post

    Website Support
    & Maintenance Services

    Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

    Get Started
    mageplaza services