WordPress.org

Support

Support » Themes and Templates » [Resolved] Mobile Menu dropdown FIX

[Resolved] 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!

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?

    Home

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

    frank ugh

    @frank-ugh

    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.

    frank ugh

    @frank-ugh

    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 ‘[Resolved] Mobile Menu dropdown FIX’ is closed to new replies.