WordPress.org

Forums

Mountain Creek
Mobile Menu dropdown FIX (6 posts)

  1. 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!

  2. Gorilla Themes
    Member
    Posted 10 months ago #

    Thank you for sharing your solution, a new update is live on the repository.

  3. frank ugh
    Member
    Posted 7 months ago #

    Hi thanks for sharing.
    Unfortunately on my site I still do not see a drop-down menu when navigating whilst using a smartphone. Do you have further ideas about what might be causing the problem?

    http://www.harpistesophie.nl/

  4. Gorilla Themes
    Member
    Posted 7 months ago #

    Frank how you've setup the menu? I've downloaded and activated the latest version from here in a localhost and it is working without issues (responsive menu).

  5. frank ugh
    Member
    Posted 7 months ago #

    Thank you for your quick response. I have simply installed the theme through the wordpress admin site. (Themes - add new - activate) The menu automatically contained the different pages on the site.

    In this version the code in responsive.js was already updated.

  6. frank ugh
    Member
    Posted 7 months ago #

    I re-installed the Theme. It works fine now. No idea what could have caused the problem before:/

    Thanks again for helping!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.