WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The dropdown menu that Thesis creates is 99% fine, except that it's very unforgiving to users that don't master the use of mouse very easily - old people and people with average to bad vision. I would like to improve its usability using a bit of javascript, allowing the mouse to be a few pixels offside and still keep the submenu open. I tried this in my custom javascript file:

var hoverConfig = {    
         over: function(e){
                $.log("launch menu");
        timeout: 500, // number = milliseconds delay before onMouseOut    
        out:  function(e){
                $.log("hide menu");

    $("#menu-main-menu").hoverIntent( hoverConfig );

Firebug logging shows that it works - the show and hide functions are called, but the CSS behaviour still triggers and i don't manage to cancel it so that the javascript behaviour takes the full control. Any idea how i can do that?

share|improve this question
up vote 0 down vote accepted

In fact it works; i just didn't bind the behaviour to the right element. It should be bound to the #mainmenu>li and then it works. Dumb me!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.