[Support request] Hamburger menu in footer without plugin

Home Forums Support [Support request] Hamburger menu in footer without plugin

Home Forums Support Hamburger menu in footer without plugin

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1573950
    Ralph

    Hi Generatepress -blocks team, Is it possible to display a hamburger menu in the footer without the need of a plugin. I created a block / hook and marked the location where I would like the hamburger menu to be displayed.

    Best regards, Ralph

    #1574148
    David
    Staff
    Customer Support

    Hi there,

    what would this Hamburger menu open ?

    #1574319
    Ralph

    Hi David, The hamburger menu would open a WordPress menu, created under appearance/menu. The menu contains links to articles and posts. I enclosed a link to the website I am trying to rebuild with Generateblocks.

    #1575230
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This sort of thing would require custom javascript/HTML/PHP.

    What if it just opened our built-in off-canvas panel instead?

    #1575835
    Ralph

    Hi Tom, That sounds ok. Are you saying the off-canvas panel can be triggered/opened by an icon/button in the current footer? If so, can you point me to into the right direction. For test purposes I already build a off-canvas panel. How do I proceed from here :-).

    #1575993
    David
    Staff
    Customer Support

    Hi there,

    to trigger the off canvas from any where you can simply create a button or link and give it a class of slideout-toggle

    For example this HTML:

    <a class="slideout-toggle" href="#">Off canvas toggle</a>

    Then to hide the Toggle in the primary nav you can add this CSS:

    .main-navigation .menu-bar-item .slideout-toggle {
        display: none;
    }

    Make sure to set the Off Canvas Panel to display only on Mobile.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.