Hello
I am using this code :
jQuery(document).ready(function() {
jQuery(function () {
jQuery('#categories.nav li, #pages.nav li').hover(function () {
jQuery('ul', this).stop(true, true).delay(200).slideDown(200);
}, function () {
jQuery('ul', this).stop(true, true).slideUp(200);
});
});
});
This code is not working well. For example, when I open the homepage of my wp theme and I mouseover the menu, jquery doesn't work on the first try (so the submenu works normally without the jquery effect). However, it does work from the second attempt onwards.
If I go to another page or I refresh the current page, jQuery doesn't work initially but again, it starts to work on the second attempt...
Can you explain why this happens?
I would welcome suggestions for a better solution, I just want my submenu to act the same as yootheme or similiar. (I am testing this wordpress theme on localhost)
Thank you!!