[Resolved] Open Off Canvas Panel using icon or button link

Home Forums Support [Resolved] Open Off Canvas Panel using icon or button link

Home Forums Support Open Off Canvas Panel using icon or button link

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1979389
    Peter

    Hello,

    This may have been answered but I did not find it.
    I’m creating a mobile “app-like” menu that sticks to the bottom of the mobile page.
    I want to add an icon that when tapped/clicked it opens the Off Canvas Panel.
    So, rather than the automated hamburger menu opening the off canvas panel, I want an icon that I can place in my container / grid.

    Possible? Or other options?
    I am use GP Premium & GB Pro.

    Thank you.

    #1979409
    Leo
    Staff
    Customer Support

    Hi Peter,

    Adding menu-toggle custom class to any elements should trigger the off-canvas panel.

    Let me know if this helps πŸ™‚

    #2266133
    Zach

    @Leo, when I add menu-toggle custom class to my icon, it hides the icon. I am assuming this has something to do with GP customizer settings. I am using an Elementor header but want to trigger the GP slideout with a custom icon. How can I trigger the off canvas slideout with my custom icon, without actually using the GP header?

    #2266168
    Ying
    Staff
    Customer Support

    Hi Zach,

    Do you have a link set to the icon?

    If not, use #as the icon’s link.

    If it doesn’t work, can you link us to your site and point us to the custom icon?

    #2266205
    Zach

    Adding a link doesn’t work.

    Here is the site: https://amicilaser.flywheelsites.com/

    un: flywheel
    pw: steady-query

    The icon should be in the right of the mobile header under the book appointment button.

    #2266224
    Ying
    Staff
    Customer Support

    I’m not seeing the icon:
    https://www.screencast.com/t/Mz0JkkhEwc

    Am I missing anything?

    #2266231
    Zach

    Indeed, that is my issue πŸ˜‰

    #2266245
    Ying
    Staff
    Customer Support

    Let me know when the icon shows, so I can inspect the element πŸ™‚

    #2266248
    Zach

    The element is there, just not visible. For some reason, adding the mobile-toggle class hides the icon. You’ll just have to inspect the empty space there.

    #2266290
    Ying
    Staff
    Customer Support

    This method will only work when the button is added within GP’s navigation, since you are using elementor to build the header area, it is hidden and the script won’t run.

    Unfortunately, I do not see a way to call the slideout navigation in your case.

    #2266328
    Zach

    Ah ok. Makes sense. Thanks for your help!!

    #2267231
    Ying
    Staff
    Customer Support

    No problem πŸ™‚

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