Hi again. Sorry, I removed the code temporarily so you weren’t able to see it. It is back in its place now. I do have two problems though:
1
I want to change the class .x-anchor-text-primary to a class whereby the background on hover (see yellow background in the links below) will stay on for as long as I hover a menu item with children and anything below (sub-menu, dropdown, etc.). But neither
jQuery(".menu-item-has-children") nor
jQuery(".menu-item-has-children, .sub-menu *") nor any combination of .menu-item-has-children, . sub-menu, .x-dropdown, .x-active works perfectly
Have a look at the following two illustrations:
2
Also, I would like the animation when ‘unhovering’ on mouse out to work faster. I have read several of your answers in this forum about the issue, which say that this would require customisation. But they may be old because at least in the current version of Pro you can configure the transition speed of inline navigation top links, dropdown and siblings. Yet, the ‘mouse out’ animation is slower than the ‘mouse in’. Is there any way around this? Referring to the links above, you see that the yellow background is gone faster than the sub-menu, and to change that I would require 1.5s transition of the background, which would be much too long.
The issue was solved here: Menu transition too slow. I copied that, and it worked but caused my third level menu (sub-sub-menu) to be visible at all times - not just when hovering the sub-menu link.
Thanks.