WordPress.org

Forums

Mountain Creek not being responsive (3 posts)

  1. athene.numphe
    Member
    Posted 1 year ago #

    I'm using the Mountain Creek theme by Gorilla themes for my site. The dropdown menu when viewed on a mobile site isn't dropping down. Apparently I'm not the only one who is having this problem (http://wordpress.org/support/view/theme-reviews/mountain-creek). The code looks exactly the same as the demo site's version and I haven't changed any of it. Anyone have any idea what could be going on?

    Thanks!

  2. minkaart
    Member
    Posted 1 year ago #

    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!

  3. athene.numphe
    Member
    Posted 1 year ago #

    That worked!!!

    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic