somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
335 stars 82 forks source link

How to make HTML menu added not at the end of the page layout and immediately after the main menu? #28

Closed UrchenkoV closed 4 years ago

UrchenkoV commented 4 years ago

Hello.

Have WordPress appeared new rules, need to mobile menu supported governance with have but your script menu inserts in late markup this not allows use menu with have with the help TAB. How do I change the code so that the markup is inserted after the main menu?

Add a non-minified CSS file to the source.

Can you fix the script to support keyboard controls?

somewebmedia commented 4 years ago

I can make nav to be inserted to the beginning of the body instead of the end. Due to css restrictions it can't go inside the content.

Can you clarify what you exactly mean by keyboard controls? Any example?

UrchenkoV commented 4 years ago

I already did it myself. Thanks.

somewebmedia commented 4 years ago

Nav is now prepended to the body by default and full keyboard support has been added in the latest release.