How to Force Mobile Menu
-
Hi Chris —
Is there any way to programmatically force the shiftnav MOBILE menu to render for specific pages/post types?
We are successfully using your plugin for mobile menus at a specific pixel breakpoint that is configured in the Shiftnav config screen. But we have a custom post type that we want displayed ALWAYS with the mobile menu/hamburger menu option regardless of device/screen width.
We are loading a header-custom.php file for this custom post type’s template…any way we can accomplish this without having to create/manage a completely separate nav menu?
We could prob use CSS to hide the primary nav, and force the hamburger menu to show…and then use your .shiftnav( ‘openShiftNav’ ) and .shiftnav( ‘closeShiftNav’ ) JS API calls to show/hide the shiftnav menu — would this be an acceptable approach? Any other recommendations that you might have would be appreciated.
Thanks,
Sang
The topic ‘How to Force Mobile Menu’ is closed to new replies.