Autonav Mobile Menu on Desktop
Permalink
I'm attempting to have the mobile menu (hamburger icon) from the responsive_header_navigation autonav template be visible on desktop. I hoped it was as easy as removing the display none on the mobile menu and adding display none on the normal nav, but I was wrong. Any ideas on how I can make this work? Thanks in advance!
The Responsive Header Navigation can be made to display on desktop, but ideally should be modified to avoid creating an unnecessary copy of the navigation items. For more control over the hamburger icon position, the hamburger HTML needs to be moved into the theme (so that it can be positioned absolute in relation to the body or header).
This is where the navigation is cloned.
https://github.com/concrete5/concrete5/blob/develop/web/concrete/blo...
- display the hamburger
- display the mobile nav
- this CSS controls the mobile nav color, placement, border, size, etc.
- it is a direct child of the body tag, so it can be easily positioned
- optional - replace the slide animation with a show/hide toggle
https://github.com/concrete5/concrete5/blob/develop/web/concrete/blo...