Toggle filters and expand when needed.
Expands into this:
JS
Add the following code inside an HTML widget. Preferably, under your search form VX widget (or anywhere you like).
Your filter will now show only 6 elements and a view more button to any list filter that has more than 6 elements in it.
If you want to change this number, change the number 7 and 6 from both the script and the style.
Here – if (listItems.length > 6)
Here – for (var i = 6; i < listItems.length; i++) {
And here – li:nth-of-type(1n+7)
No results available
Reset- Filter by
- Filter by
No results available
Reset