Site logo

[Support request] Hamburger switches to an X on off canvas menu

Home Forums Support [Support request] Hamburger switches to an X on off canvas menu

Home Forums Support Hamburger switches to an X on off canvas menu

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1840169
    Streater

    I added the off canvas menu… I wanted to keep showing the navigation bar and use the original X when the menu is open so I changed the Z-Index. But a problem came about: When I click the Hamburger to open it, it changes to X like normal. BUT I click the X to exit out and it exists out but stays an X. Then I click the X and it opens back up and now it is a hamburger while the menu is open. Any ideas?

    #1840178
    Streater

    Also I just noticed this same problem is created if I view the mobile layout on my desktop browser by making my window smaller. So I make the width of the browser smaller to be mobile.

    Then I click the menu to be open. IF then I move the width of the browser, the X turns into a Hamburger (and the menu stays open).

    In both these situations then, Hamburger means close the menu and X means open then menu.

    #1840727
    David
    Staff
    Customer Support

    Hi there,

    can you remove the current CSS you have to reposition the off canvas – and ill take a look and provide some that works correctly.

    #1840952
    Streater

    Ok it is removed. Thanks!

    #1841900
    David
    Staff
    Customer Support

    Try adding this CSS to correct the Hamburger toggle:

    body.slide-opened .icon-menu-bars svg:nth-child(1),
    body:not(.slide-opened) .icon-menu-bars svg:nth-child(2){
        display: none;
    }
    body:not(.slide-opened) .icon-menu-bars svg:nth-child(1),
    body.slide-opened .icon-menu-bars svg:nth-child(2) {
        display: inline;
    }
    #1842404
    Streater

    That worked thanks!

    #1842408
    David
    Staff
    Customer Support

    Glad to hear that

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