Jump to content

Hide Subcategories from Top Menu

Recommended Posts

Please help. How limiting subcategories in the Prestashop Top Menu?
I cant to disable subcategories levels (over 3) on top menu.

I use default top menu module in my prestashop (default-bootstrap)
It display a lot of subcategories in the tree (after hovering on menu item)

I change on modules/blocktopmenu/blocktopmenu.php

if (isset($category[‘children’]) && !empty($category[‘children’]))
with this
if ($category[‘level_depth’] < 4 && isset($category[‘children’]) && !empty($category[‘children’]))

But this solutions not working :(

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More