Hi everyone!
This is a problem that’s really stumping me – I need to have an image dynamically show up as the header depending on which first-level nav item you’re hovering over (including it’s submenus). (i.e. hovering over Home and any of it’s children would show a different image than when hovering over About and any of its children).
I figured out a semi-easy way to do this through some simple CSS/HTML, but it only works for links I can control by hand – not those automatically generated by Wayfinder. I noticed Wayfinder automatically appends the classes of "first" and "last" to the first and last items of a list, which is super helpful.
So getting to the point, my main question is,
how can I get it to force a different class onto each item all the way down (i.e. first, second, third, fourth, fifth, last), or even just (first + 1, 2, 3, 4, 5, last + 6) so I can individually control them.
Thanks a lot!!