Pages level and menu

Permalink
Hello folks !

I would like to make de second page level disappear from only one page in the menu. Do you think it's possible ?

Thank in advance !

Martin

martinlebrun
 
Kurtopsy replied on at Permalink Best Answer Reply
Kurtopsy
Create a custom template for the autonav block, and uncomment this in it
if ($ni->hasSubmenu) {
        //class for items that have dropdown sub-menus
        $classes[] = 'nav-dropdown';
    }
and
$classes[] = 'nav-item-' . $ni->cID;

Then inspect the element to determine its class, and apply a display:none to it.
martinlebrun replied on at Permalink Reply
martinlebrun
I'm going to check if this code works.

Thank you Kurtopsy ! :)