• Resolved minkaart

    (@minkaart)


    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Gorilla Themes

    (@gorilla-themes)

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

    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?

    https://www.harpistesophie.nl/

    Theme Author Gorilla Themes

    (@gorilla-themes)

    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).

    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.

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

    Thanks again for helping!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mobile Menu dropdown FIX’ is closed to new replies.