Hi Alex,
You’re awesome! It works.
I didn’t see how it would work because your plugin doesn’t ask for the hover image until the menu is saved. After I saved the menu, added hover image and saved a again, the CSS just works!
The only change I made to the CSS is I used current-menu-ancestor instead of current-menu-item because there is no current-menu-item on top level in my case.
Here is my css:
.menu-item.current-menu-ancestor a.menu-image-hovered .menu-image-hover-wrapper img.hovered-image {
opacity: 1;
}
Thank you Alex!
Neo