Archived topic
Secondary navigation on mobile question
39 replies · Started by Anonymous on July 10, 2015
Yup - that's where I copied from. Code Spippet is active. Below is what I have running:
add_action( 'wp_enqueue_scripts', 'generate_dequeue_secondary_nav_mobile', 999 );
function generate_dequeue_secondary_nav_mobile() {
wp_dequeue_style( 'generate-secondary-nav-mobile' );
}
I have no idea why it's not working. Driving me nuts.
That's really weird. Are you able to provide a screenshot of the Code Snippet page?
You can upload to a site like this: https://postimage.io/ and provide the direct link.
[url=https://postimg.org/image/9hmsnej2r/][img]https://s13.postimg.org/qux329edz/Screen_Shot_2017-06-14_at_3.56.41_PM.png[/img][/url]
Hmm that is really weird...Can you try checking "Run snippet everywhere"?
Ok. Updated.
Ahh sorry I see what's going on. You are using the mobile header which removes secondary navigation.
https://docs.generatepress.com/article/mobile-header/
Try turning it off. Your logo is normal logo is quite big so it should still look good without using the mobile header.
Ok - that's working, but it takes up SO much space at the top now. Nearly half the page is menu. Any suggestions here? Ideally, the logo and the hamburger menu would be on the same line as it does when you use the mobile header. Thoughts?
Give this CSS a shot: https://generatepress.com/forums/topic/mobile-menu-alignment/#post-260447
Thanks again Leo. Appreciate the help.
No problem!