Site logo

[Resolved] Trigger Slideout Menu with secondary button

Home Forums Support [Resolved] Trigger Slideout Menu with secondary button

Home Forums Support Trigger Slideout Menu with secondary button

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #776178
    David
    Staff
    Customer Support

    What setting is it on? Make sure its on for both mobile and desktop 🙂

    #776184
    Daniel

    Finally, how do I replace the ‘hamburger’ with text? Thanks again!

    #776193
    David
    Staff
    Customer Support

    Do you want to remove it and just leave the text? If so this:

    .slideout-toggle a.button:before {
        display: none;
    }

    And to get rid of the one in the Primary Nav then this:

    @media (min-width: 769px) {
        .sf-menu>li.slideout-toggle {
        display: none;
        }
    }
    #1801040
    Stu

    On this topic, just in case anyone wanted to use a keyboard shortcut for the slide-out menu.

    I wanted to use the “Escape” key for this but that causes a flicker, so use another instead, in this case the ‘Delete’ key 🙂

    Other values you could use are listed here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values

    
    jQuery(document).ready(function($){
    <!-- Start of Function -->
    $(document).on('keydown', function ( e ) {
        if (e.key == "Delete")  {
    		$('.slideout-toggle a')[0].click();
        }
    });
    <!-- END of Function -->
    })
    
    #1801365
    David
    Staff
    Customer Support

    Thats great – thanks for sharing !

    #2004198
    onalti

    I don’t use Off Canvas.

Viewing 6 posts - 16 through 21 (of 21 total)
  • The topic ‘Trigger Slideout Menu with secondary button’ is closed to new replies.