Hello! I’m trying to create a mega menu for a WooCommerce store. The idea is to have the top-level categories on the secondary navigation bar and have a dropdown that lists the subcategories on one side and sample products on the other. I’d like the sample products to reflect the subcategory that is being hovered on the menu.
I saw this recent reply to a similar post:
I’m trying to implement it, but I’m stuck:
- I created a menu (in WP admin) that includes only the subcategories for the top-level category “Outdoor”
- Inserted the dropdown.
- Inserted navigation-inline element.
- Inserted stacked slider and removed navigation controls.
- Created a couple of test slides pulling products from a specific subcategory as dynamic content.
- Made the whole row the context for the slider. Added test navigation to make sure it’s working.
However, I cannot find how to:
- Activate 'data-x-slide-goto=“X” ’ (or any other custom attribute) on hover/focus instead of on click.
- Make each individual element from navigation-inline trigger a different data-x-slide-goto=“X” , while keeping their original functionality (linking to the correct page on click).
https://melioravivere.com/header/
Thanks in advance!