Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Something like this should work in functions.php:

    if( is_page( 'about' ) )
    add_filter( 'has_nav_menu', 'ea_remove_submenu', 99, 2 );
    
    function ea_remove_submenu( $has_menu, $location ) {
    	if( 'secondary' == $location )
    		$has_menu = false;
    	return $has_menu;
    }
    
    • This reply was modified 7 years, 3 months ago by Bill Erickson.
    Thread Starter Steve West

    (@espedub)

    thanks Bill

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclude sub-nav from specific pages’ is closed to new replies.