Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    Thread Starter athene.numphe

    (@athenenumphe)

    That worked!!!

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mountain Creek not being responsive’ is closed to new replies.