(2015-02-17, 04:20:07)mvlcek Wrote: 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; }
This works great, gets the job done with minimal effort. What a simple solution - as always, thank you for your assistance Martin! FYI, I modified the CSS a bit to make it a bit shorter:
Code:
li.nav-specials li:nth-child(n+4) { display: none; }