The default menu in the TwentyEleven theme is quite nice, pure CSS, but unfortunately, way too responsive and quick. It would be so nice to have it respond the same exact way with which the admin bar menu responds, that is instant drop-downs, but with a bit of delay on mouse out to let the visitor come back to the menu should his cursor slide out of the menu.
What would be the most efficient way to implement the HoverIntent jQuery Plugin into the default TwentyEleven menu?
Thanks
Pat
Here is the code I have in my
functions.php
file:This is step 1… Next? Comments? Solutions? I will edit this post once I will have found the answer.
Here is my inline script in the
<head>
:…and by the way, I want to move this script under my
js
folder into its own file, then enqueue it to the bottom of my rendered page (or should I do it?) Thanks for all your suggestions.