Support to combine multiple menus in one mobile menu
-
Here an enhanced version of
slick-init.js
(based on 1.6.3) which we made for a client, changes are marked with// Ov3rfly
It can combine multiple WordPress menus into one mobile menu.
https://pastebin.com/GC937N0A (link expires after 7 days)
With the enhanced
slick-init.js
in place, you can use one selector or multiple comma separated selectors at SlickNav Mobile Menu Name in backend, examples:#primary-menu
#primary-menu, #secondary-menu
#top-menu, #primary-menu, #other-menu, #secondary-menu
The code is pretty simple, you can add as many menus as you like, the concept is based on a two menus codepen by Josh Cope.
Additional note: In a future release you should rename
phpVars
to something likengSlickVars
or similar in php and js.Thanks for the great plugin.
- The topic ‘Support to combine multiple menus in one mobile menu’ is closed to new replies.