Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Add a separate button to open the Mobile Nav

Home Forums Latest release 1.1.x Add a separate button to open the Mobile Nav

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #8355

    Hi! I am looking to place a button in the footer so that if someone is on mobile, they can click it and it will open the hamburger menu located in the header. I found some older code on here from 2015, but it’s not working.

    $(‘#menuFooter’).on(‘click’, function() {
    setTimeout(function() {
    $(‘#main-menu’).smartmenus(‘itemActivate’, $(‘li > a’));
    }, 1);

    Can anyone help?


    If You look at (there : smalll screen devices) You find a code with

    <!– Mobile menu toggle button (hamburger/x icon) –>
    <input id=”main-menu-state” type=”checkbox” />
    <label class=”main-menu-btn” for=”main-menu-state”>
    <span class=”main-menu-btn-icon”></span> Toggle main menu visibility

    <h2 class=”nav-brand”>Brand</h2>

    which You can put into the footer (together with the js)

    At You just have to shift the page together into narrow mode and then the button appears in the top nav-line.

    an example is at

    This will function with some modifications.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘1.1.x’ is closed to new topics and replies.