Anonymous User 15400552
(@anonymized-15400552)
I got the same question. Populating on desktop menu’s works great. But the mobile menu doesn’t work.
I found a workaround for this. You can create a dummy menu at same level that JS menus are populated. And make it display:none with css. And it works fine :))
Anonymous User 15400552
(@anonymized-15400552)
Awesome! How did you find out?
Edit: Doesn’t work for me 🙁
-
This reply was modified 5 years ago by
Anonymous User 15400552.
Suddenly came to my mind 🙂
First try without making it display:none and see dummy menu togethet with populated menus.
Anonymous User 15400552
(@anonymized-15400552)
Yeah I tried, but it doesn’t do anything. To make sure. This is how your menu is build up right?:
Top menu item (with JC submenu enabled for populating)
–> sub menu item (dummy)
And it shows on mobile for you?
No, mine is submenu is populated with js and I added dummy menu to same level with submenu. My tops menu is not using JC.
Anonymous User 15400552
(@anonymized-15400552)
Can you make it like a tree as i Deed with description per item? Would really help me and most prob. other to. Thanks!
Sorry I did not understand what you mean.
Anonymous User 15400552
(@anonymized-15400552)
Nevermind, found out how to get it working without hidden menu workaround.
Add this on to your child theme functions!
// enable compatibility with theme custom menu walkers
add_filter('jcs/enable_public_walker', '__return_false');
-
This reply was modified 5 years ago by
Anonymous User 15400552.
I remember it. But it only works (I guess) with child themes which I do not use (I think).