2015-02-17, 04:20:07
(2015-02-17, 02:53:57)bensayers Wrote: Hello, I have an odd request from a client... I need to limit the number of dropdown items displayed for a specific parent item (special-offers), is this possible?
If you set a class "nav-" + slug to your <li>, you can use a CSS rule (here max. 5 items):
Code:
li.nav-special-offers li + li + li + li + li + li { display: none; }
There is no easy/medium way to limit the output of the children, unless you use return_i18n_menu_data and do the rendering completely yourself.