Reply To: Secondary navigation on mobile question

Home Forums Support Secondary navigation on mobile question Reply To: Secondary navigation on mobile question

#212431
Tom
Lead Developer
Lead Developer

Ah, you want it on all blog pages.

Well maybe it would be easier to just remove it on pages?

add_action('after_setup_theme', 'remove_nav_exclude_blog_page');
function remove_nav_exclude_blog_page() {
    if ( is_page() ) 
        remove_action('generate_after_header', 'generate_add_secondary_navigation_before_header');
}