bamboothemes / zengridframework4-universal

0 stars 0 forks source link

In the old T3 menu one was able to stop a dropdown at a selected level #106

Closed woodsy751 closed 8 years ago

woodsy751 commented 8 years ago

In V5 this works in CSS This works in custom css

/menu off dropdown at various levels/ .zen-menu-horizontal ul ul ,.zen-menu-horizontal ul ul li { background-color: transparent; display: none;}/turns off level 2/ /_.zen-menu-horizontal ul ul ul,.zen-menu-horizontal ul ul li ul li { background-color: transparent; display: none;}/_turns off level 3*/

I have tried to set this up in the back end but it does not work

(In) variables.less

// menu overrides //-------------------------

@drop-menu-level2: null;

(In) themer.xml

        <field name="drop-menu-level2" compile="config" type="select" default="normal" label="Show menu at level 2" >
            <option value="background-color: red; display: inline;">Yes</option>
            <option value="background-color: transparent; display: none;">No</option>
        </field>

(In) custom.less

/* Drop down menu limits -----------------------------------------------------------------------------*/ .zen-menu-horizontal ul ul ,.zen-menu-horizontal ul ul li { @drop-menu-level2 }

[10:11] has anyone an idea on how to get this working? thanks

locii commented 8 years ago

So does your custom css work? It's not something I will add to the plugin at this stage.