How to Hide Categories in Magento 2

How to Hide Categories in Magento 2

Hidden categories in Magento 2 are the categories that are not displayed in the frontend of the store in the navigation menu or in any other place on the store.

A Magento 2 store admin may want to create a hidden category for the administration purpose or hide it from the customers for time being.

Or, he might want to link to a category that is not included in the navigation menu.

Also, if a category is created for future products which are now under development, so there is no point in displaying it to the customers now. So, the admin can hide empty categories in Magento 2 store to avoid any confusion for the customers as well as easily manage the products under development category-wise.

If you are a Magento 2 store admin having any of the above scenarios, follow these steps to hide categories in Magento 2.

Steps to hide categories in Magento 2:

  1. Login to admin panel
  2. Navigate to Catalog > Categories
  3. Select the category that you want to hide from the category tree on the left side.
    How to Hide Categories in Magento 2 1
  4. Disable “Enable Category” to deactivate it.
  5. Disable “Include in Menu” to hide the category from the navigation menu.
  6. Under Display Settings, disable “Anchor
    How to Hide Categories in Magento 2 2
  7. Save the configuration.

The frontend will not show the “training” category as it is now a hidden category as shown here:

How to Hide Categories in Magento 2 3

Moreover, you can add subcategories to the hidden categories and active them as shown below:

  1. Login to admin panel
  2. Navigate to Catalog > Categories
  3. Select the sub-category of a hidden category that you want to activate.
  4. Enable Category
  5. Under Display Settings, enable “Anchor
  6. Save the configuration.

How to Hide Categories in Magento 2 4

Here, the subcategories from the hidden parent category won’t be shown in the navigation menu but on the other parts of the Magento 2 store.

That’s it.

Any doubts in the above steps? If so, please mention them in the Comments section below.

I’d be happy to help.

Also, do not forget to share the tutorial with the Magento community via social media.

Thank you.

Get Weekly Updates

Never miss Magento tips,tricks,tutorials,and news.

Thank you for subscribing.

Something went wrong.

5
(based on 1 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a reply:

Your email address will not be published.