Mobile Menu dropdown FIX
-
In “responsive.js” …
Move the ‘click’ and ‘each’ functions out of the document.ready function:
change this:
jQuery(document).ready(function() {
jQuery(“.sidebar-nav li a”).each(function() {
if (jQuery(this).next().length > 0) {
jQuery(this).addClass(“parent”);
};
})jQuery(“#pull”).click(function(e) {
e.preventDefault();
jQuery(this).toggleClass(“active”);
jQuery(“.sidebar-nav”).toggle();
});
adjustMenu();
})to this:
jQuery(document).ready(function() {
adjustMenu();
})jQuery(“.sidebar-nav li a”).each(function() {
if (jQuery(this).next().length > 0) {
jQuery(this).addClass(“parent”);
};
});jQuery(“#pull”).click(function(e) {
e.preventDefault();
jQuery(this).toggleClass(“active”);
jQuery(“.sidebar-nav”).toggle();
});That should do the trick!
- The topic ‘Mobile Menu dropdown FIX’ is closed to new replies.