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 1.6.1.3 (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 :(

Link to comment
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...