I may be going about this all the wrong way but I'm needing to add a second "hamburger" menu for the mobile view (click the second icon and a different menu set opens in the same fashion as the primary_navigation). I understand that the Omega Menu is javascript drive. I was wondering if I could just add a few lines to it so it could activate the second menu. So far I haven't blown the javascript up but it just doesn't work.
I added this to the omega-navaigation.js
But I think I need to change the omegaNavigation to something else too (but don't quite understand what needs to be done)
and I created the secondary_navigation (and added the item to the Global Header) and updated all the data-hooks from data-hook="omega-navigation" to include a _1 (for example data-hook="omega-navigation_1")\
Yeah, I'm probably doing this all wrong.
I added this to the omega-navaigation.js
HTML Code:
let omegaNavigation = document.querySelector('[data-hook="omega-navigation_1"]'); let omegaContent = document.querySelector('[data-hook="omega-navigation_1__content"]'); let parentLinks = document.querySelectorAll('[data-hook~="omega-navigation_1__link"]'); let childrenLinks = document.querySelector('[data-hook~="omega-navigation_1__children"]');
and I created the secondary_navigation (and added the item to the Global Header) and updated all the data-hooks from data-hook="omega-navigation" to include a _1 (for example data-hook="omega-navigation_1")\
Yeah, I'm probably doing this all wrong.
Comment